]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/spinbutt.h
afacb7ea8f43e0c3bb7ae4b8e9b874e76861c435
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
16 #pragma interface "spinbutt.h"
19 #include "wx/control.h"
22 #if defined(__WIN95__)
25 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
27 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
35 wxSpinButton(wxWindow
*parent
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
39 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
40 const wxString
& name
= "wxSpinButton")
42 Create(parent
, id
, pos
, size
, style
, name
);
45 virtual ~wxSpinButton();
47 bool Create(wxWindow
*parent
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
51 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
52 const wxString
& name
= "wxSpinButton");
56 ////////////////////////////////////////////////////////////////////////////
58 virtual int GetValue() const;
59 virtual void SetValue(int val
);
60 virtual void SetRange(int minVal
, int maxVal
);
63 virtual bool MSWCommand(WXUINT param
, WXWORD id
);
64 virtual bool MSWOnScroll(int orientation
, WXWORD wParam
,
65 WXWORD pos
, WXHWND control
);