]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
15 #include "wx/control.h"
18 extern MRESULT EXPENTRY
wxSpinCtrlWndProc(
25 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
30 inline wxSpinButton( wxWindow
* pParent
32 ,const wxPoint
& rPos
= wxDefaultPosition
33 ,const wxSize
& rSize
= wxDefaultSize
34 ,long lStyle
= wxSP_VERTICAL
35 ,const wxString
& rsName
= wxT("wxSpinButton")
38 Create(pParent
, vId
, rPos
, rSize
, lStyle
, rsName
);
40 virtual ~wxSpinButton();
43 bool Create( wxWindow
* pParent
45 ,const wxPoint
& rPos
= wxDefaultPosition
46 ,const wxSize
& rSize
= wxDefaultSize
47 ,long lStyle
= wxSP_VERTICAL
48 ,const wxString
& rsName
= wxT("wxSpinButton")
52 inline virtual int GetMax(void) const { return m_max
; }
53 inline virtual int GetMin(void) const { return m_min
; }
54 virtual int GetValue(void) const;
55 inline bool IsVertical(void) const {return ((m_windowStyle
& wxSP_VERTICAL
) != 0); }
56 virtual void SetValue(int nVal
);
57 virtual void SetRange( int nMinVal
64 virtual bool OS2Command( WXUINT wParam
67 virtual bool OS2OnScroll( int nOrientation
73 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
75 virtual wxSize
DoGetBestSize() const;
77 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
78 }; // end of CLASS wxSpinButton
80 #endif // _WX_SPINBUTT_H_