]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/stattext.h
29561640a939b20c8ecd93cd910f850b640f4c2b
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
16 #pragma interface "stattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
24 wxStaticText(wxWindow
*parent
,
26 const wxString
& label
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
30 const wxString
& name
= wxStaticTextNameStr
)
32 Create(parent
, id
, label
, pos
, size
, style
, name
);
35 bool Create(wxWindow
*parent
,
37 const wxString
& label
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
41 const wxString
& name
= wxStaticTextNameStr
);
43 // override some methods to resize the window properly
44 virtual void SetLabel(const wxString
& label
);
45 virtual bool SetFont( const wxFont
&font
);
48 virtual void DoSetSize(int x
, int y
, int w
, int h
,
49 int sizeFlags
= wxSIZE_AUTO
);
50 virtual wxSize
DoGetBestSize() const;
51 virtual long MSWWindowProc(WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
);
53 DECLARE_DYNAMIC_CLASS(wxStaticText
)