X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6adaedf0fc6607ee5bb4e86358396e5e07c6649f..219a5f10c0e5efc3aad7ff3d050a92e7fed88806:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 02d26def7d..2ea44a6738 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -12,6 +12,10 @@ #ifndef _WX_GENERIC_SPINCTRL_H_ #define _WX_GENERIC_SPINCTRL_H_ +#ifdef __GNUG__ + #pragma interface "spinctlg.h" +#endif + #include "wx/textctrl.h" // ---------------------------------------------------------------------------- @@ -46,10 +50,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 +81,9 @@ protected: int m_min; int m_max; + +private: + DECLARE_DYNAMIC_CLASS(wxSpinCtrl) }; #endif // _WX_GENERIC_SPINCTRL_H_