X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffa50e73618bab4f57ea423b9178a9c08b44433a..021efd65100322b3c152cc1017cfb961664d30a4:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 72d9fe96c1..bad095f9e9 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4754,12 +4754,6 @@ void wxWindowMSW::OnPaint(wxPaintEvent& event) bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc) { - // standard non top level controls (i.e. except the dialogs) always erase - // their background themselves in HandleCtlColor() or have some control- - // specific ways to set the colours (common controls) - if ( IsOfStandardClass() && !IsTopLevel() ) - return false; - switch ( GetBackgroundStyle() ) { case wxBG_STYLE_ERASE: @@ -4782,7 +4776,7 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc) if ( rc ) { - // background erase by the user-defined handler + // background erased by the user-defined handler return true; } }