From: Vadim Zeitlin Date: Fri, 7 Jan 2005 17:10:30 +0000 (+0000) Subject: don't ignore the background colour set for the dialog, even although it is a standard... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/52c3e064c7ecc5ae64022b58bfe31327af97a21d don't ignore the background colour set for the dialog, even although it is a standard control git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 9f2ee69c58..b0f094f46f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4084,9 +4084,10 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc) void wxWindowMSW::OnEraseBackground(wxEraseEvent& event) { - // standard controls always erase their background themselves (although the - // user may try to override it in a derived class) - if ( IsOfStandardClass() ) + // 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() ) { event.Skip(); return;