]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/stattext.h
attemps to speed up wxToolBar::MapBitmap() - failed
[wxWidgets.git] / include / wx / msw / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
14
15 #ifdef __GNUG__
16 #pragma interface "stattext.h"
17 #endif
18
19 class WXDLLEXPORT wxStaticText : public wxStaticTextBase
20 {
21 public:
22 wxStaticText() { }
23
24 wxStaticText(wxWindow *parent,
25 wxWindowID id,
26 const wxString& label,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = 0,
30 const wxString& name = wxStaticTextNameStr)
31 {
32 Create(parent, id, label, pos, size, style, name);
33 }
34
35 bool Create(wxWindow *parent,
36 wxWindowID id,
37 const wxString& label,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = 0,
41 const wxString& name = wxStaticTextNameStr);
42
43 // override some methods to resize the window properly
44 virtual void SetLabel(const wxString& label);
45 virtual bool SetFont( const wxFont &font );
46
47 protected:
48 virtual void DoSetSize(int x, int y, int w, int h,
49 int sizeFlags = wxSIZE_AUTO);
50 virtual wxSize DoGetBestSize() const;
51
52 DECLARE_DYNAMIC_CLASS(wxStaticText)
53 };
54
55 #endif
56 // _WX_STATTEXT_H_