+ //
+ // Return the spinctrl object whose buddy is the given window or NULL
+ // Doesn't really do much under OS/2
+ //
+ static wxSpinCtrl* GetSpinForTextCtrl(WXHWND hWndBuddy);
+
+ //
+ // Process a WM_COMMAND generated by the buddy text control
+ //
+ bool ProcessTextCommand( WXWORD wCmd
+ ,WXWORD wId
+ );
+
+protected:
+ virtual void DoGetPosition( int* nlX
+ ,int* nlY
+ ) const;
+ void DoMoveWindow( int nX
+ ,int nY
+ ,int nWidth
+ ,int nHeight
+ );
+ virtual wxSize DoGetBestSize(void) const;
+ virtual void DoGetSize( int* pnWidth
+ ,int* pnHeight
+ ) const;
+
+ //
+ // The handler for wxSpinButton events
+ //
+ void OnSpinChange(wxSpinEvent& rEvent);
+ void OnChar(wxKeyEvent& rEvent);
+ void OnSetFocus(wxFocusEvent& rEvent);
+
+ WXHWND m_hWndBuddy;
+ static wxArraySpins m_svAllSpins;