X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05d65177f8a80a872f987ba1f3b11f5da49c7768..96c9640205933ad0673d5af2c96af0816c50160c:/src/msw/panel.cpp diff --git a/src/msw/panel.cpp b/src/msw/panel.cpp index c502caf9f5..9d30beb7a0 100644 --- a/src/msw/panel.cpp +++ b/src/msw/panel.cpp @@ -24,8 +24,6 @@ #endif #ifndef WX_PRECOMP - #include "wx/bitmap.h" - #include "wx/brush.h" #include "wx/panel.h" #endif // WX_PRECOMP @@ -33,11 +31,6 @@ // implementation // ============================================================================ -wxPanel::~wxPanel() -{ - delete m_backgroundBrush; -} - bool wxPanel::HasTransparentBackground() { for ( wxWindow *win = GetParent(); win; win = win->GetParent() ) @@ -52,21 +45,3 @@ bool wxPanel::HasTransparentBackground() return false; } -void wxPanel::DoSetBackgroundBitmap(const wxBitmap& bmp) -{ - delete m_backgroundBrush; - m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL; - - // Our transparent children should use our background if we have it, - // otherwise try to restore m_inheritBgCol to some reasonable value: true - // if we also have non-default background colour or false otherwise. - m_inheritBgCol = bmp.IsOk() || UseBgCol(); -} - -WXHBRUSH wxPanel::MSWGetCustomBgBrush() -{ - if ( m_backgroundBrush ) - return (WXHBRUSH)m_backgroundBrush->GetResourceHandle(); - - return wxPanelBase::MSWGetCustomBgBrush(); -}