]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinctrl.h
*** empty log message ***
[wxWidgets.git] / include / wx / os2 / spinctrl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/spinctrl.h
3 // Purpose: wxSpinCtrl class declaration for Win32
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/15/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSW_SPINCTRL_H_
13 #define _WX_MSW_SPINCTRL_H_
14
15 #include "wx/spinbutt.h" // the base class
16
17 // ----------------------------------------------------------------------------
18 // Under Win32 and OS2 PM, wxSpinCtrl is a wxSpinButton with a buddy
19 // text window whose contents is automatically updated when the spin
20 // control is clicked.
21 // ----------------------------------------------------------------------------
22
23 class WXDLLEXPORT wxSpinCtrl : public wxSpinButton
24 {
25 public:
26 wxSpinCtrl() { }
27
28 wxSpinCtrl(wxWindow *parent,
29 wxWindowID id = -1,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = wxSP_ARROW_KEYS,
33 int min = 0, int max = 100, int initial = 0,
34 const wxString& name = _T("wxSpinCtrl"))
35 {
36 Create(parent, id, pos, size, style, min, max, initial, name);
37 }
38
39 bool Create(wxWindow *parent,
40 wxWindowID id = -1,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxSP_ARROW_KEYS,
44 int min = 0, int max = 100, int initial = 0,
45 const wxString& name = _T("wxSpinCtrl"));
46
47 protected:
48 void DoMoveWindow(int x, int y, int width, int height);
49
50 WXHWND m_hwndBuddy;
51
52 DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
53 };
54
55 #endif // _WX_MSW_SPINCTRL_H_
56
57