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
This commit is contained in:
Vadim Zeitlin
2005-01-07 17:10:30 +00:00
parent accbb1e758
commit 52c3e064c7

View File

@@ -4084,9 +4084,10 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc)
void wxWindowMSW::OnEraseBackground(wxEraseEvent& event) void wxWindowMSW::OnEraseBackground(wxEraseEvent& event)
{ {
// standard controls always erase their background themselves (although the // standard non top level controls (i.e. except the dialogs) always erase
// user may try to override it in a derived class) // their background themselves in HandleCtlColor() or have some control-
if ( IsOfStandardClass() ) // specific ways to set the colours (common controls)
if ( IsOfStandardClass() && !IsTopLevel() )
{ {
event.Skip(); event.Skip();
return; return;