]> git.saurik.com Git - wxWidgets.git/blob - include/wx/stattext.h
Added CanApplyParentThemeBackground and use it in wxMSW's
[wxWidgets.git] / include / wx / stattext.h
1 #ifndef _WX_STATTEXT_H_BASE_
2 #define _WX_STATTEXT_H_BASE_
3
4 #if wxUSE_STATTEXT
5
6 #include "wx/control.h"
7
8 WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr;
9
10 class WXDLLEXPORT wxStaticTextBase : public wxControl
11 {
12 public:
13 wxStaticTextBase() { }
14
15 // overriden base virtuals
16 virtual bool AcceptsFocus() const { return false; }
17 virtual bool CanApplyParentThemeBackground() const { return true; }
18
19 private:
20 DECLARE_NO_COPY_CLASS(wxStaticTextBase)
21 };
22
23 #if defined(__WXUNIVERSAL__)
24 #include "wx/univ/stattext.h"
25 #elif defined(__WXMSW__)
26 #include "wx/msw/stattext.h"
27 #elif defined(__WXMOTIF__)
28 #include "wx/motif/stattext.h"
29 #elif defined(__WXGTK__)
30 #include "wx/gtk/stattext.h"
31 #elif defined(__WXMAC__)
32 #include "wx/mac/stattext.h"
33 #elif defined(__WXCOCOA__)
34 #include "wx/cocoa/stattext.h"
35 #elif defined(__WXPM__)
36 #include "wx/os2/stattext.h"
37 #endif
38
39 #endif // wxUSE_STATTEXT
40
41 #endif
42 // _WX_STATTEXT_H_BASE_