]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/statbox.h
pragma fix for gcc
[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 DECLARE_DYNAMIC_CLASS(wxStaticBox)
23
24 public:
25 inline wxStaticBox() {}
26 inline wxStaticBox( wxWindow* parent
27 ,wxWindowID id
28 ,const wxString& label
29 ,const wxPoint& pos = wxDefaultPosition
30 ,const wxSize& size = wxDefaultSize
31 ,long style = 0
32 ,const wxString& name = wxStaticBoxNameStr
33 )
34 {
35 Create(parent, id, label, pos, size, style, name);
36 }
37
38 bool Create( wxWindow* parent
39 ,wxWindowID id
40 ,const wxString& label
41 ,const wxPoint& pos = wxDefaultPosition
42 ,const wxSize& size = wxDefaultSize
43 ,long style = 0
44 ,const wxString& name = wxStaticBoxNameStr
45 );
46
47 // implementation from now on
48 // --------------------------
49
50 void OnEraseBackground(wxEraseEvent& event);
51
52 virtual MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
53
54 virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
55 WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
56
57 // overriden base class virtuals
58 virtual bool AcceptsFocus() const { return FALSE; }
59
60 protected:
61 virtual wxSize DoGetBestSize() const;
62
63 private:
64 DECLARE_EVENT_TABLE()
65 };
66
67 #endif
68 // _WX_STATBOX_H_
69