]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
applied fix to fix BCC's wxBitmap ctor problem
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 02d26def7d2e8137f2b1cd895f013f4289a64a99..c7eb2758efc633055e9a6e5b3da4d65638a27541 100644 (file)
@@ -46,10 +46,11 @@ public:
     {
         SetRange(min, max);
 
-        bool val = 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 value;
+
+        return ok;
     }
 
     // accessors
@@ -76,6 +77,9 @@ protected:
 
     int   m_min;
     int   m_max;
+
+private:
+    DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
 };
 
 #endif // _WX_GENERIC_SPINCTRL_H_