git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14551
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( flags & wxCONTROL_PRESSED )
{
if ( flags & wxCONTROL_PRESSED )
{
- DrawBorder(dc, wxBORDER_SUNKEN, rect, flags);
+ DrawBorder(dc, wxBORDER_SUNKEN, rect, flags, &rect);
+
+ DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_PRESSED), rect);
}
else if ( flags & wxCONTROL_CURRENT )
{
}
else if ( flags & wxCONTROL_CURRENT )
{
- DrawBorder(dc, wxBORDER_RAISED, rect, flags);
+ DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rect);
+
+ DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_CURRENT), rect);
}
dc.DrawLabel(label, bitmap, rect, wxALIGN_CENTRE);
}
dc.DrawLabel(label, bitmap, rect, wxALIGN_CENTRE);