X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd507486e07b742bb7acb118811efd60ee027859..2a039701a8aebaf8eb7e7cbc408dbb994661975f:/include/wx/checkbox.h diff --git a/include/wx/checkbox.h b/include/wx/checkbox.h index bb97f9d5ca..6d3ec75c4d 100644 --- a/include/wx/checkbox.h +++ b/include/wx/checkbox.h @@ -106,7 +106,8 @@ public: return HasFlag(wxCHK_ALLOW_3RD_STATE_FOR_USER); } - virtual bool CanApplyParentThemeBackground() const { return true; } + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } protected: virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }