git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13843
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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
// 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
- if ( !col.Ok() || (flags != 0) )
+ if ( !col.Ok() || (flags & wxCONTROL_PRESSED) != 0 )
{
if ( wxDynamicCast(win, wxScrollBar) )
col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED
{
if ( wxDynamicCast(win, wxScrollBar) )
col = Get(flags & wxCONTROL_PRESSED ? SCROLLBAR_PRESSED