X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd95f7e65c4e1ee61a5d90eb13687ff468cb13ad..931d6a47c32a5b4c283243cb553ce71ee2b535d5:/src/msw/panel.cpp diff --git a/src/msw/panel.cpp b/src/msw/panel.cpp index bc73d1267a..fc7cfa5bb1 100644 --- a/src/msw/panel.cpp +++ b/src/msw/panel.cpp @@ -3,7 +3,6 @@ // Purpose: Implementation of wxMSW-specific wxPanel class. // Author: Vadim Zeitlin // Created: 2011-03-18 -// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $ // Copyright: (c) 2011 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -24,7 +23,6 @@ #endif #ifndef WX_PRECOMP - #include "wx/brush.h" #include "wx/panel.h" #endif // WX_PRECOMP @@ -46,16 +44,3 @@ bool wxPanel::HasTransparentBackground() return false; } -void wxPanel::DoSetBackgroundBitmap(const wxBitmap& bmp) -{ - delete m_backgroundBrush; - m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL; -} - -WXHBRUSH wxPanel::MSWGetCustomBgBrush() -{ - if ( m_backgroundBrush ) - return (WXHBRUSH)m_backgroundBrush->GetResourceHandle(); - - return wxPanelBase::MSWGetCustomBgBrush(); -}