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