#endif
#ifndef WX_PRECOMP
- #include "wx/brush.h"
#include "wx/panel.h"
#endif // WX_PRECOMP
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();
-}