diff --git a/include/wx/msw/checkbox.h b/include/wx/msw/checkbox.h index da3df7f80a..c15b226eda 100644 --- a/include/wx/msw/checkbox.h +++ b/include/wx/msw/checkbox.h @@ -50,9 +50,9 @@ public: protected: virtual wxSize DoGetBestSize() const; + virtual WXHBRUSH MSWGetDefaultBgBrush(); virtual void DoSet3StateValue(wxCheckBoxState value); - virtual wxCheckBoxState DoGet3StateValue() const; private: diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 547e418e06..a43947cc5c 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -201,6 +201,11 @@ wxSize wxCheckBox::DoGetBestSize() const return wxSize(wCheckbox, hCheckbox); } +WXHBRUSH wxCheckBox::MSWGetDefaultBgBrush() +{ + return ::GetStockObject(NULL_BRUSH); +} + void wxCheckBox::SetValue(bool val) { if (val)