]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/statbox.h
made some wxHtmlEntitiesParser's methods public -- turned out they are useful
[wxWidgets.git] / include / wx / os2 / statbox.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbox.h
3// Purpose: wxStaticBox class
409c9842 4// Author: David Webster
0e320a79 5// Modified by:
409c9842 6// Created: 10/15/99
0e320a79 7// RCS-ID: $Id$
409c9842
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATBOX_H_
13#define _WX_STATBOX_H_
14
0e320a79
DW
15#include "wx/control.h"
16
17WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
18
19// Group box
210a651b 20class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
0e320a79
DW
21{
22 DECLARE_DYNAMIC_CLASS(wxStaticBox)
23
24 public:
409c9842
DW
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
a885d89a 52 virtual MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
409c9842
DW
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
60protected:
e78c4d50 61 virtual wxSize DoGetBestSize() const;
409c9842
DW
62
63private:
64 DECLARE_EVENT_TABLE()
0e320a79
DW
65};
66
67#endif
68 // _WX_STATBOX_H_
409c9842 69