]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/statbox.h
fixed redraw problems in wxStaticText
[wxWidgets.git] / include / wx / os2 / statbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statbox.h
3 // Purpose: wxStaticBox class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/15/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATBOX_H_
13 #define _WX_STATBOX_H_
14
15 #include "wx/control.h"
16
17 WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
18
19 // Group box
20 class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
21 {
22 public:
23 inline wxStaticBox() {}
24 inline wxStaticBox( wxWindow* pParent
25 ,wxWindowID vId
26 ,const wxString& rsLabel
27 ,const wxPoint& rPos = wxDefaultPosition
28 ,const wxSize& rSize = wxDefaultSize
29 ,long lStyle = 0
30 ,const wxString& rsName = wxStaticBoxNameStr
31 )
32 {
33 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
34 }
35
36 bool Create( wxWindow* pParent
37 ,wxWindowID vId
38 ,const wxString& rsLabel
39 ,const wxPoint& rPos = wxDefaultPosition
40 ,const wxSize& rSize = wxDefaultSize
41 ,long lStyle = 0
42 ,const wxString& rsName = wxStaticBoxNameStr
43 );
44
45 //
46 // implementation from now on
47 // --------------------------
48 //
49 virtual MRESULT OS2WindowProc( WXUINT uMsg
50 ,WXWPARAM wParam
51 ,WXLPARAM lParam
52 );
53
54 //
55 // overriden base class virtuals
56 //
57 inline virtual bool AcceptsFocus(void) const { return FALSE; }
58
59 protected:
60 virtual wxSize DoGetBestSize(void) const;
61
62 private:
63 DECLARE_DYNAMIC_CLASS(wxStaticBox)
64 }; // end of CLASS wxStaticBox
65
66 #endif
67 // _WX_STATBOX_H_
68