void wxMSWOwnerDrawnButtonBase::MSWMakeOwnerDrawnIfNecessary(const wxColour& colFg) { // The only way to change the checkbox foreground colour when using // themes is to owner draw it. if ( wxUxThemeEngine::GetIfActive() ) MSWMakeOwnerDrawn(colFg.IsOk()); }
bool wxCheckBox::SetForegroundColour(const wxColour& colour) { if ( !wxCheckBoxBase::SetForegroundColour(colour) ) return false; // the only way to change the checkbox foreground colour under Windows XP // is to owner draw it if ( wxUxThemeEngine::GetIfActive() ) MSWMakeOwnerDrawn(colour.IsOk()); return true; }