]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
Implemented wxGetClientDisplayRect which returns the dimensions of the
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 288758c6f0363fec677cdfc669faf97c90013034..2ea44a673811065d0e549c39ecc8f83a21c7b792 100644 (file)
 #ifndef _WX_GENERIC_SPINCTRL_H_
 #define _WX_GENERIC_SPINCTRL_H_
 
+#ifdef __GNUG__
+    #pragma interface "spinctlg.h"
+#endif
+
 #include "wx/textctrl.h"
 
 // ----------------------------------------------------------------------------
@@ -44,11 +48,13 @@ public:
                 int min = 0, int max = 100, int initial = 0,
                 const wxString& name = _T("wxSpinCtrl"))
     {
-        SetValue(initial);
         SetRange(min, max);
 
-        return wxTextCtrl::Create(parent, id, value, pos, size, style,
-                                  wxDefaultValidator, name);
+        bool ok = wxTextCtrl::Create(parent, id, value, pos, size, style,
+                                     wxDefaultValidator, name);
+        SetValue(initial);
+
+        return ok;
     }
 
     // accessors
@@ -75,6 +81,9 @@ protected:
 
     int   m_min;
     int   m_max;
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
 };
 
 #endif // _WX_GENERIC_SPINCTRL_H_