]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/slidrmsw.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/slidrmsw.h
3 // Purpose: wxSliderMSW class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "slidrmsw.h"
20 class WXDLLEXPORT wxSliderMSW
: public wxSliderBase
25 wxSliderMSW(wxWindow
*parent
, wxWindowID id
,
26 int value
, int minValue
, int maxValue
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxSL_HORIZONTAL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxSliderNameStr
)
33 Create(parent
, id
, value
, minValue
, maxValue
, pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID id
,
39 int value
, int minValue
, int maxValue
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxSL_HORIZONTAL
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxSliderNameStr
);
46 virtual int GetValue() const;
47 virtual void SetValue(int);
49 void GetSize(int *x
, int *y
) const;
50 void GetPosition(int *x
, int *y
) const;
54 void SetRange(int minValue
, int maxValue
);
56 int GetMin() const { return m_rangeMin
; }
57 int GetMax() const { return m_rangeMax
; }
60 void SetPageSize(int pageSize
);
61 int GetPageSize() const;
62 void SetLineSize(int lineSize
);
63 int GetLineSize() const;
65 // these methods get/set the length of the slider pointer in pixels
66 virtual void SetThumbLength(int lenPixels
);
67 virtual int GetThumbLength() const ;
70 WXHWND
GetStaticMin() const { return m_staticMin
; }
71 WXHWND
GetStaticMax() const { return m_staticMax
; }
72 WXHWND
GetEditValue() const { return m_staticValue
; }
73 virtual bool ContainsHWND(WXHWND hWnd
) const;
75 void Command(wxCommandEvent
& event
);
76 virtual bool MSWOnScroll(int orientation
, WXWORD wParam
,
77 WXWORD pos
, WXHWND control
);
88 virtual void DoSetSize(int x
, int y
,
89 int width
, int height
,
90 int sizeFlags
= wxSIZE_AUTO
);
92 DECLARE_DYNAMIC_CLASS(wxSliderMSW
)