]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/stattext.h
wxGridCellAttr::Clone() added to allow the demo of custom grid cell attr provider...
[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
19#include "wx/control.h"
20
32c1cda2 21WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr;
2bda0e17 22
396bdd5a 23class WXDLLEXPORT wxStaticText : public wxControl
2bda0e17 24{
396bdd5a 25DECLARE_DYNAMIC_CLASS(wxStaticText)
2bda0e17 26
396bdd5a
VZ
27public:
28 wxStaticText() { }
4438caf4 29
396bdd5a
VZ
30 wxStaticText(wxWindow *parent, wxWindowID id,
31 const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = 0,
35 const wxString& name = wxStaticTextNameStr)
36 {
37 Create(parent, id, label, pos, size, style, name);
38 }
4438caf4 39
396bdd5a
VZ
40 bool Create(wxWindow *parent, wxWindowID id,
41 const wxString& label,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = 0,
45 const wxString& name = wxStaticTextNameStr);
4438caf4 46
396bdd5a 47 // accessors
396bdd5a 48 void SetLabel(const wxString& label);
4438caf4 49
396bdd5a
VZ
50 // overriden base class virtuals
51 virtual bool AcceptsFocus() const { return FALSE; }
4438caf4 52
396bdd5a 53 // callbacks
396bdd5a 54 virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
bfc6fde4
VZ
55
56protected:
f68586e5 57 virtual wxSize DoGetBestSize() const;
2bda0e17
KB
58};
59
60#endif
bbcdf8bc 61 // _WX_STATTEXT_H_