]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/frame.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/frame.h
3 // Purpose: wxFrame class for wxUniversal
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_FRAME_H_
13 #define _WX_UNIV_FRAME_H_
16 #pragma interface "univframe.h"
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxFrame
: public wxFrameBase
27 wxFrame(wxWindow
*parent
,
29 const wxString
& title
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxDEFAULT_FRAME_STYLE
,
33 const wxString
& name
= wxFrameNameStr
)
35 Create(parent
, id
, title
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
,
40 const wxString
& title
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxDEFAULT_FRAME_STYLE
,
44 const wxString
& name
= wxFrameNameStr
);
46 virtual wxPoint
GetClientAreaOrigin() const;
47 virtual bool Enable(bool enable
= TRUE
);
50 virtual wxStatusBar
* CreateStatusBar(int number
= 1,
51 long style
= wxST_SIZEGRIP
,
53 const wxString
& name
= wxStatusLineNameStr
);
54 #endif // wxUSE_STATUSBAR
57 // create main toolbar bycalling OnCreateToolBar()
58 virtual wxToolBar
* CreateToolBar(long style
= wxNO_BORDER
|wxTB_HORIZONTAL
,
60 const wxString
& name
= wxToolBarNameStr
);
61 virtual void PositionToolBar();
62 #endif // wxUSE_TOOLBAR
64 virtual int GetMinWidth() const;
65 virtual int GetMinHeight() const;
68 void OnSize(wxSizeEvent
& event
);
70 // sends wxSizeEvent to itself (used after attaching xxxBar)
73 virtual void DoGetClientSize(int *width
, int *height
) const;
74 virtual void DoSetClientSize(int width
, int height
);
77 // override to update menu bar position when the frame size changes
78 virtual void PositionMenuBar();
79 virtual void DetachMenuBar();
80 virtual void AttachMenuBar(wxMenuBar
*menubar
);
84 // override to update statusbar position when the frame size changes
85 virtual void PositionStatusBar();
89 DECLARE_DYNAMIC_CLASS(wxFrame
)
92 #endif // _WX_UNIV_FRAME_H_