]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/stattext.h
added a few WXDLLEXPORTS, corrected/expanded comments
[wxWidgets.git] / include / wx / msw / stattext.h
CommitLineData
2bda0e17
KB
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$
bbcdf8bc 8// Copyright: (c) Julian Smart
4438caf4 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
2bda0e17
KB
14
15#ifdef __GNUG__
396bdd5a 16 #pragma interface "stattext.h"
2bda0e17
KB
17#endif
18
1e3a888e 19class WXDLLEXPORT wxStaticText : public wxStaticTextBase
2bda0e17 20{
396bdd5a
VZ
21public:
22 wxStaticText() { }
4438caf4 23
1e6feb95
VZ
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)
396bdd5a
VZ
31 {
32 Create(parent, id, label, pos, size, style, name);
33 }
4438caf4 34
1e6feb95
VZ
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);
4438caf4 42
1e3a888e
VZ
43 // override some methods to resize the window properly
44 virtual void SetLabel(const wxString& label);
45 virtual bool SetFont( const wxFont &font );
bfc6fde4
VZ
46
47protected:
1e3a888e
VZ
48 virtual void DoSetSize(int x, int y, int w, int h,
49 int sizeFlags = wxSIZE_AUTO);
f68586e5 50 virtual wxSize DoGetBestSize() const;
a9d171bd 51 virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
1e3a888e
VZ
52
53 DECLARE_DYNAMIC_CLASS(wxStaticText)
2bda0e17
KB
54};
55
56#endif
bbcdf8bc 57 // _WX_STATTEXT_H_