X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8681b0940e488496e86dcb92f55600197fe98803..38c58c778d8f8b0abf889e787e0364d42c1c445f:/src/msw/window.cpp?ds=inline diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 49c4a6c7c2..70f74831c8 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4070,6 +4070,13 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc) 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();