]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/statbox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBox class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBOX_H_
13 #define _WX_STATBOX_H_
15 #include "wx/control.h"
17 WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr
;
20 class WXDLLEXPORT wxStaticBox
: public wxControl
22 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
25 inline wxStaticBox() {}
26 inline wxStaticBox( wxWindow
* parent
28 ,const wxString
& label
29 ,const wxPoint
& pos
= wxDefaultPosition
30 ,const wxSize
& size
= wxDefaultSize
32 ,const wxString
& name
= wxStaticBoxNameStr
35 Create(parent
, id
, label
, pos
, size
, style
, name
);
38 bool Create( wxWindow
* parent
40 ,const wxString
& label
41 ,const wxPoint
& pos
= wxDefaultPosition
42 ,const wxSize
& size
= wxDefaultSize
44 ,const wxString
& name
= wxStaticBoxNameStr
47 // implementation from now on
48 // --------------------------
50 void OnEraseBackground(wxEraseEvent
& event
);
52 virtual MRESULT
OS2WindowProc(HWND hwnd
, WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
);
54 virtual WXHBRUSH
OnCtlColor(WXHDC pDC
, WXHWND pWnd
, WXUINT nCtlColor
,
55 WXUINT message
, WXWPARAM wParam
, WXLPARAM lParam
);
57 // overriden base class virtuals
58 virtual bool AcceptsFocus() const { return FALSE
; }
61 virtual wxSize
DoGetBestSize() const;