]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/button.h
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / include / wx / mac / button.h
index d581f9a97bda809d6366f839f62ebef15bc4ef05..680652b3e75550bd474e17db0c0b8a774f30a25b 100644 (file)
@@ -22,7 +22,7 @@
 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 
 // Pushbutton
-class WXDLLEXPORT wxButton: public wxControl
+class WXDLLEXPORT wxButton: public wxButtonBase
 {
   DECLARE_DYNAMIC_CLASS(wxButton)
  public:
@@ -48,7 +48,7 @@ class WXDLLEXPORT wxButton: public wxControl
   virtual void SetDefault();
   virtual void Command(wxCommandEvent& event);
 protected:
-    virtual wxSize DoGetBestSize();
+    virtual wxSize DoGetBestSize() const ;
 };
 
 #endif