X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c140b7e7c9aabb61ab5e6e017cfb768c05373502..9f8845289521c7f53e95b6dfd8275daab8b05639:/include/wx/msw/button.h 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);