]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/stattext.h
Link with bufferoverflowu.lib for VC++ 8 and later
[wxWidgets.git] / include / wx / msw / stattext.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
29020b90 2// Name: wx/msw/stattext.h
2bda0e17
KB
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
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
2bda0e17 14
1e3a888e 15class WXDLLEXPORT wxStaticText : public wxStaticTextBase
2bda0e17 16{
396bdd5a
VZ
17public:
18 wxStaticText() { }
4438caf4 19
1e6feb95
VZ
20 wxStaticText(wxWindow *parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxStaticTextNameStr)
396bdd5a
VZ
27 {
28 Create(parent, id, label, pos, size, style, name);
29 }
4438caf4 30
1e6feb95
VZ
31 bool Create(wxWindow *parent,
32 wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxString& name = wxStaticTextNameStr);
4438caf4 38
c0e6c051
RD
39 // override some methods to resize the window properly
40 virtual void SetLabel(const wxString& label);
41 virtual bool SetFont( const wxFont &font );
42
bfc6fde4 43protected:
29020b90 44 // implement/override some base class virtuals
65bc172c 45 virtual wxBorder GetDefaultBorder() const;
1e3a888e
VZ
46 virtual void DoSetSize(int x, int y, int w, int h,
47 int sizeFlags = wxSIZE_AUTO);
f68586e5 48 virtual wxSize DoGetBestSize() const;
29020b90 49 virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
c3732409 50
1e3a888e 51
fc7a2a60 52 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
2bda0e17
KB
53};
54
55#endif
bbcdf8bc 56 // _WX_STATTEXT_H_