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