]>
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
7 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_FRAME_H_
12 #define _WX_UNIV_FRAME_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxFrame
: public wxFrameBase
22 wxFrame(wxWindow
*parent
,
24 const wxString
& title
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxDEFAULT_FRAME_STYLE
,
28 const wxString
& name
= wxFrameNameStr
)
30 Create(parent
, id
, title
, pos
, size
, style
, name
);
33 bool Create(wxWindow
*parent
,
35 const wxString
& title
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
38 long style
= wxDEFAULT_FRAME_STYLE
,
39 const wxString
& name
= wxFrameNameStr
);
41 virtual wxPoint
GetClientAreaOrigin() const;
42 virtual bool Enable(bool enable
= true);
45 virtual wxStatusBar
* CreateStatusBar(int number
= 1,
46 long style
= wxSTB_DEFAULT_STYLE
,
48 const wxString
& name
= wxStatusLineNameStr
);
49 #endif // wxUSE_STATUSBAR
52 // create main toolbar bycalling OnCreateToolBar()
53 virtual wxToolBar
* CreateToolBar(long style
= -1,
54 wxWindowID id
= wxID_ANY
,
55 const wxString
& name
= wxToolBarNameStr
);
56 #endif // wxUSE_TOOLBAR
58 virtual wxSize
GetMinSize() const;
61 void OnSize(wxSizeEvent
& event
);
62 void OnSysColourChanged(wxSysColourChangedEvent
& event
);
64 virtual void DoGetClientSize(int *width
, int *height
) const;
65 virtual void DoSetClientSize(int width
, int height
);
68 // override to update menu bar position when the frame size changes
69 virtual void PositionMenuBar();
70 virtual void DetachMenuBar();
71 virtual void AttachMenuBar(wxMenuBar
*menubar
);
75 // override to update statusbar position when the frame size changes
76 virtual void PositionStatusBar();
81 virtual void PositionToolBar();
82 #endif // wxUSE_TOOLBAR
85 DECLARE_DYNAMIC_CLASS(wxFrame
)
88 #endif // _WX_UNIV_FRAME_H_