]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/button.h
implemented (untested) work around for wxScrolledWindow painting bug
[wxWidgets.git] / include / wx / os2 / button.h
index ed2c8a8f40750b3f1e77bbc984736dbd8154fb5e..5330bcfb8f12878206c5195e52e158c714c4bbbe 100644 (file)
@@ -17,9 +17,8 @@
 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 
 // Pushbutton
 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 
 // Pushbutton
-class WXDLLEXPORT wxButton: public wxControl
+class WXDLLEXPORT wxButton: public wxButtonBase
 {
 {
-  DECLARE_DYNAMIC_CLASS(wxButton)
  public:
   inline wxButton() {}
   inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
  public:
   inline wxButton() {}
   inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
@@ -60,6 +59,8 @@ protected:
     bool SendClickEvent();
 
     virtual wxSize DoGetBestSize() const;
     bool SendClickEvent();
 
     virtual wxSize DoGetBestSize() const;
+private:
+  DECLARE_DYNAMIC_CLASS(wxButton)
 };
 
 #endif
 };
 
 #endif