1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_SPINBUTT_H_
12 #define _WX_SPINBUTT_H_
14 #include "wx/control.h"
17 extern MRESULT EXPENTRY
wxSpinCtrlWndProc(
24 class WXDLLIMPEXP_CORE wxSpinButton
: public wxSpinButtonBase
29 inline wxSpinButton( wxWindow
* pParent
31 ,const wxPoint
& rPos
= wxDefaultPosition
32 ,const wxSize
& rSize
= wxDefaultSize
33 ,long lStyle
= wxSP_VERTICAL
34 ,const wxString
& rsName
= wxT("wxSpinButton")
37 Create(pParent
, vId
, rPos
, rSize
, lStyle
, rsName
);
39 virtual ~wxSpinButton();
42 bool Create( wxWindow
* pParent
44 ,const wxPoint
& rPos
= wxDefaultPosition
45 ,const wxSize
& rSize
= wxDefaultSize
46 ,long lStyle
= wxSP_VERTICAL
47 ,const wxString
& rsName
= wxT("wxSpinButton")
51 inline virtual int GetMax(void) const { return m_max
; }
52 inline virtual int GetMin(void) const { return m_min
; }
53 virtual int GetValue(void) const;
54 inline bool IsVertical(void) const {return ((m_windowStyle
& wxSP_VERTICAL
) != 0); }
55 virtual void SetValue(int nVal
);
56 virtual void SetRange( int nMinVal
63 virtual bool OS2Command( WXUINT wParam
66 virtual bool OS2OnScroll( int nOrientation
72 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
74 virtual wxSize
DoGetBestSize() const;
76 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
77 }; // end of CLASS wxSpinButton
79 #endif // _WX_SPINBUTT_H_