diff --git a/include/wx/msw/checkbox.h b/include/wx/msw/checkbox.h index 275fed537b..f00fe9cfe3 100644 --- a/include/wx/msw/checkbox.h +++ b/include/wx/msw/checkbox.h @@ -52,15 +52,15 @@ public: // returns true if the platform should explicitly apply a theme border virtual bool CanApplyThemeBorder() const { return false; } + // make the checkbox owner drawn or reset it to normal style + void MSWMakeOwnerDrawn(bool ownerDrawn); + protected: virtual wxSize DoGetBestSize() const; virtual void DoSet3StateValue(wxCheckBoxState value); virtual wxCheckBoxState DoGet3StateValue() const; - // make the checkbox owner drawn or reset it to normal style - void MakeOwnerDrawn(bool ownerDrawn); - // return true if this checkbox is owner drawn bool IsOwnerDrawn() const; diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index fed760a4a5..85a52a49cc 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -273,7 +273,7 @@ bool wxCheckBox::SetForegroundColour(const wxColour& colour) // the only way to change the checkbox foreground colour under Windows XP // is to owner draw it if ( wxUxThemeEngine::GetIfActive() ) - MakeOwnerDrawn(colour.IsOk()); + MSWMakeOwnerDrawn(colour.IsOk()); return true; } @@ -284,7 +284,7 @@ bool wxCheckBox::IsOwnerDrawn() const (::GetWindowLong(GetHwnd(), GWL_STYLE) & BS_OWNERDRAW) == BS_OWNERDRAW; } -void wxCheckBox::MakeOwnerDrawn(bool ownerDrawn) +void wxCheckBox::MSWMakeOwnerDrawn(bool ownerDrawn) { long style = ::GetWindowLong(GetHwnd(), GWL_STYLE);