1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/statbox.h
3 // Purpose: wxStaticBox class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATBOX_H_
12 #define _WX_STATBOX_H_
14 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxStaticBox
: public wxStaticBoxBase
20 inline wxStaticBox() {}
21 inline wxStaticBox( wxWindow
* pParent
23 ,const wxString
& rsLabel
24 ,const wxPoint
& rPos
= wxDefaultPosition
25 ,const wxSize
& rSize
= wxDefaultSize
27 ,const wxString
& rsName
= wxStaticBoxNameStr
30 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
33 bool Create( wxWindow
* pParent
35 ,const wxString
& rsLabel
36 ,const wxPoint
& rPos
= wxDefaultPosition
37 ,const wxSize
& rSize
= wxDefaultSize
39 ,const wxString
& rsName
= wxStaticBoxNameStr
43 // implementation from now on
44 // --------------------------
46 virtual MRESULT
OS2WindowProc( WXUINT uMsg
52 // overridden base class virtuals
54 inline virtual bool AcceptsFocus(void) const { return FALSE
; }
57 virtual wxSize
DoGetBestSize(void) const;
60 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
61 }; // end of CLASS wxStaticBox