1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/scrolbar.h
3 // Purpose: wxScrollBar class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_SCROLBAR_H_
12 #define _WX_SCROLBAR_H_
14 #include "wx/scrolbar.h"
17 class WXDLLIMPEXP_CORE wxScrollBar
: public wxScrollBarBase
26 inline wxScrollBar( wxWindow
* pParent
28 ,const wxPoint
& rPos
= wxDefaultPosition
29 ,const wxSize
& rSize
= wxDefaultSize
30 ,long lStyle
= wxSB_HORIZONTAL
32 ,const wxValidator
& rValidator
= wxDefaultValidator
34 ,const wxString
& rsName
= wxScrollBarNameStr
48 virtual ~wxScrollBar();
50 bool Create( wxWindow
* pParent
52 ,const wxPoint
& rPos
= wxDefaultPosition
53 ,const wxSize
& rSize
= wxDefaultSize
54 ,long lStyle
= wxSB_HORIZONTAL
56 ,const wxValidator
& rValidator
= wxDefaultValidator
58 ,const wxString
& rsName
= wxScrollBarNameStr
61 int GetThumbPosition(void) const ;
62 inline int GetThumbSize(void) const { return m_nPageSize
; }
63 inline int GetPageSize(void) const { return m_nViewSize
; }
64 inline int GetRange(void) const { return m_nObjectSize
; }
66 virtual void SetThumbPosition(int nViewStart
);
67 virtual void SetScrollbar( int nPosition
74 void Command(wxCommandEvent
& rEvent
);
75 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
82 virtual bool OS2OnScroll( int nOrientation
94 DECLARE_DYNAMIC_CLASS(wxScrollBar
)
95 }; // end of CLASS wxScrollBar