+ // a wxTextCtrl-like method (but we can't have GetValue returning wxString
+ // 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
+ // -------------------------------
+
+ virtual ~wxSpinCtrl();
+
+ virtual void SetValue(int val);
+ virtual int GetValue() const;
+ virtual bool SetFont(const wxFont &font);
+ virtual void SetFocus();
+
+ virtual bool Enable(bool enable = true);
+ virtual bool Show(bool show = true);
+
+ virtual bool Reparent(wxWindowBase *newParent);
+
+ // wxSpinButton doesn't accept focus, but we do
+ virtual bool AcceptsFocus() const { return wxWindow::AcceptsFocus(); }
+
+ // for internal use only
+
+ // get the subclassed window proc of the buddy text
+ WXFARPROC GetBuddyWndProc() const { return m_wndProcBuddy; }
+
+ // return the spinctrl object whose buddy is the given window or NULL
+ static wxSpinCtrl *GetSpinForTextCtrl(WXHWND hwndBuddy);
+
+ // process a WM_COMMAND generated by the buddy text control
+ bool ProcessTextCommand(WXWORD cmd, WXWORD id);
+