]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/spinbutt.h
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 virtual int GetValue() const;
57 virtual void SetValue(int val
);
58 virtual void SetRange(int minVal
, int maxVal
);
61 virtual bool MSWCommand(WXUINT param
, WXWORD id
);
62 virtual bool MSWOnNotify(int idCtrl
, WXLPARAM lParam
, WXLPARAM
*result
);
63 virtual bool MSWOnScroll(int orientation
, WXWORD wParam
,
64 WXWORD pos
, WXHWND control
);