(hacky) fix for bg colour handling in wxUniv's win32 theme

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-01-27 00:45:24 +00:00
parent 8a9d5e5a73
commit 072a81babe

View File

@@ -1261,7 +1261,7 @@ wxColour wxWin32ColourScheme::GetBackground(wxWindow *win) const
// the colour set by the user should be used for the normal state // the colour set by the user should be used for the normal state
// and for the states for which we don't have any specific colours // and for the states for which we don't have any specific colours
if ( !col.Ok() || (flags != 0) ) if ( !col.Ok() || (flags & wxCONTROL_PRESSED) != 0 )
{ {
if ( wxDynamicCast(win, wxScrollBar) ) if ( wxDynamicCast(win, wxScrollBar) )
col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED