X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..788519c6055dc2290c40fb1569d2889d8ef8e76b:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index f535a8dd3f..973af21a18 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -20,7 +20,7 @@ // without tons of #ifdefs. // ---------------------------------------------------------------------------- -#if wxUSE_SPINBTN +#if wxUSE_SPINBTN #ifdef __GNUG__ #pragma interface "spinctlg.h" @@ -47,6 +47,7 @@ public: int min = 0, int max = 100, int initial = 0, const wxString& name = _T("wxSpinCtrl")) { + Init(); Create(parent, id, value, pos, size, style, min, max, initial, name); } @@ -101,6 +102,9 @@ private: // the subcontrols wxTextCtrl *m_text; wxSpinButton *m_btn; + +private: + DECLARE_DYNAMIC_CLASS(wxSpinCtrl) }; #else // !wxUSE_SPINBTN