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