]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinbutt.h
Add more checks for Intel compiler.
[wxWidgets.git] / include / wx / os2 / spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/15/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_SPINBUTT_H_
12 #define _WX_SPINBUTT_H_
13
14 #include "wx/control.h"
15 #include "wx/event.h"
16
17 extern MRESULT EXPENTRY wxSpinCtrlWndProc(
18 HWND hWnd
19 , UINT uMessage
20 , MPARAM wParam
21 , MPARAM lParam
22 );
23
24 class WXDLLIMPEXP_CORE wxSpinButton: public wxSpinButtonBase
25 {
26 public:
27 // Construction
28 wxSpinButton() { }
29 inline wxSpinButton( wxWindow* pParent
30 ,wxWindowID vId = -1
31 ,const wxPoint& rPos = wxDefaultPosition
32 ,const wxSize& rSize = wxDefaultSize
33 ,long lStyle = wxSP_VERTICAL
34 ,const wxString& rsName = wxT("wxSpinButton")
35 )
36 {
37 Create(pParent, vId, rPos, rSize, lStyle, rsName);
38 }
39 virtual ~wxSpinButton();
40
41
42 bool Create( wxWindow* pParent
43 ,wxWindowID vId = -1
44 ,const wxPoint& rPos = wxDefaultPosition
45 ,const wxSize& rSize = wxDefaultSize
46 ,long lStyle = wxSP_VERTICAL
47 ,const wxString& rsName = wxT("wxSpinButton")
48 );
49
50 // Accessors
51 inline virtual int GetMax(void) const { return m_max; }
52 inline virtual int GetMin(void) const { return m_min; }
53 virtual int GetValue(void) const;
54 inline bool IsVertical(void) const {return ((m_windowStyle & wxSP_VERTICAL) != 0); }
55 virtual void SetValue(int nVal);
56 virtual void SetRange( int nMinVal
57 ,int nMaxVal
58 );
59
60 //
61 // Implementation
62 //
63 virtual bool OS2Command( WXUINT wParam
64 ,WXWORD wId
65 );
66 virtual bool OS2OnScroll( int nOrientation
67 ,WXWORD wParam
68 ,WXWORD wPos
69 ,WXHWND hControl
70 );
71
72 inline virtual bool AcceptsFocus(void) const { return FALSE; }
73 protected:
74 virtual wxSize DoGetBestSize() const;
75 private:
76 DECLARE_DYNAMIC_CLASS(wxSpinButton)
77 }; // end of CLASS wxSpinButton
78
79 #endif // _WX_SPINBUTT_H_