X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c140b7e7c9aabb61ab5e6e017cfb768c05373502..c0e6c0513862fc9a33e5800526058193b7492d8b:/include/wx/msw/button.h?ds=sidebyside diff --git a/include/wx/msw/button.h b/include/wx/msw/button.h index 8e5a62461e..bb844575e3 100644 --- a/include/wx/msw/button.h +++ b/include/wx/msw/button.h @@ -54,6 +54,12 @@ public: virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); virtual bool MSWCommand(WXUINT param, WXWORD id); + virtual void ApplyParentThemeBackground(const wxColour& bg) + { + // avoide switching into owner-drawn mode + wxControl::SetBackgroundColour(bg); + } + #ifdef __WIN32__ // coloured buttons support virtual bool SetBackgroundColour(const wxColour &colour);