X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d77254fc5ff47027b316cad519219623b31adaeb..22c316d6ef015f1f65c2239a3af38b3f2e64c7ef:/include/wx/msw/spinctrl.h diff --git a/include/wx/msw/spinctrl.h b/include/wx/msw/spinctrl.h index 79c5c74a2c..ad6ef12dfa 100644 --- a/include/wx/msw/spinctrl.h +++ b/include/wx/msw/spinctrl.h @@ -21,7 +21,7 @@ #include "wx/dynarray.h" class WXDLLEXPORT wxSpinCtrl; -WX_DEFINE_EXPORTED_ARRAY(wxSpinCtrl *, wxArraySpins); +WX_DEFINE_EXPORTED_ARRAY_NO_PTR(wxSpinCtrl *, wxArraySpins); // ---------------------------------------------------------------------------- // Under Win32, wxSpinCtrl is a wxSpinButton with a buddy (as MSDN docs call @@ -59,6 +59,9 @@ public: // because the base class already has one returning int!) void SetValue(const wxString& text); + // another wxTextCtrl-like method + void SetSelection(long from, long to); + // implementation only from now on // ------------------------------- @@ -97,6 +100,7 @@ protected: // Handle processing of special keys void OnChar(wxKeyEvent& event); + void OnSetFocus(wxFocusEvent& event); // the data for the "buddy" text ctrl WXHWND m_hwndBuddy; @@ -109,6 +113,7 @@ protected: private: DECLARE_DYNAMIC_CLASS(wxSpinCtrl) DECLARE_EVENT_TABLE() + DECLARE_NO_COPY_CLASS(wxSpinCtrl) }; #endif // _WX_MSW_SPINCTRL_H_