]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/button.h
Fixed to work with the new wxMacControl system.
[wxWidgets.git] / include / wx / msw / button.h
index 77df19e446a4a8bab4a9e0639b03abab17eb2616..bb844575e3b5d699db8acc0ad00eb3f44061ecee 100644 (file)
@@ -51,9 +51,15 @@ public:
 
     // implementation from now on
     virtual void Command(wxCommandEvent& event);
-    virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+    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);