]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gauge95.h
26919abfd7ab1fbb5bc144ec823dacdec9148983
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge95 class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
17 extern WXDLLEXPORT_DATA(const char) wxGaugeNameStr
[];
20 class WXDLLEXPORT wxGauge95
: public wxGaugeBase
25 wxGauge95(wxWindow
*parent
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 long style
= wxGA_HORIZONTAL
,
31 const wxValidator
& validator
= wxDefaultValidator
,
32 const wxString
& name
= wxGaugeNameStr
)
34 (void)Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
37 bool Create(wxWindow
*parent
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxGA_HORIZONTAL
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxGaugeNameStr
);
46 // set gauge range/value
47 virtual void SetRange(int range
);
48 virtual void SetValue(int pos
);
50 // overriden base class virtuals
51 virtual bool SetForegroundColour(const wxColour
& col
);
52 virtual bool SetBackgroundColour(const wxColour
& col
);
55 void SetIndeterminateMode();
56 void SetDeterminateMode();
59 WXDWORD
MSWGetStyle(long style
, WXDWORD
*exstyle
) const;
61 // returns true if the platform should explicitly apply a theme border
62 virtual bool CanApplyThemeBorder() const { return false; }
65 virtual wxSize
DoGetBestSize() const;
67 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95
)