]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/button.h
implement HitTest(pos) variant and not HitTest(x, y) one as this is what Windows...
[wxWidgets.git] / include / wx / msw / button.h
index 8e5a62461ef971cf02f3cc05a7ec9ac71e6ce098..bb844575e3b5d699db8acc0ad00eb3f44061ecee 100644 (file)
@@ -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);