git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30551
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxWindowMSW::OnEraseBackground(wxEraseEvent& event)
{
void wxWindowMSW::OnEraseBackground(wxEraseEvent& event)
{
+ if ( GetBackgroundStyle() == wxBG_STYLE_CUSTOM )
+ {
+ // don't skip the event here, custom background means that the app is
+ // drawing it itself in its OnPaint()
+ return;
+ }
+
if ( !m_hasBgCol )
{
event.Skip();
if ( !m_hasBgCol )
{
event.Skip();