never return NULL_BRUSH from WM_CTLCOLOR handler, it doesn't do much for most controls and breaks background erase for a few (slider, static text, static bitmap, ...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-12-12 00:06:43 +00:00
parent 6181cef532
commit e96ec686d8
2 changed files with 2 additions and 9 deletions

View File

@@ -371,7 +371,8 @@ WXHBRUSH wxControl::MSWControlColor(WXHDC pDC)
}
#endif // wxUSE_UXTHEME
return MSWAlwaysDrawBg() ? 0 : ::GetStockObject(NULL_BRUSH);
// let the control deal with background itself
return 0;
}
WXHBRUSH wxControl::MSWControlColorDisabled(WXHDC pDC)