]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/frame.h
207bf0d6b0b9b3a4c87cac82a49806147211f75b
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_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxFrame
: public wxFrameBase
23 wxFrame(wxWindow
*parent
,
25 const wxString
& title
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxDEFAULT_FRAME_STYLE
,
29 const wxString
& name
= wxFrameNameStr
)
31 Create(parent
, id
, title
, pos
, size
, style
, name
);
34 bool Create(wxWindow
*parent
,
36 const wxString
& title
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
39 long style
= wxDEFAULT_FRAME_STYLE
,
40 const wxString
& name
= wxFrameNameStr
);
42 virtual wxPoint
GetClientAreaOrigin() const;
43 virtual bool Enable(bool enable
= true);
46 virtual wxStatusBar
* CreateStatusBar(int number
= 1,
47 long style
= wxSTB_DEFAULT_STYLE
,
49 const wxString
& name
= wxStatusLineNameStr
);
50 #endif // wxUSE_STATUSBAR
53 // create main toolbar bycalling OnCreateToolBar()
54 virtual wxToolBar
* CreateToolBar(long style
= -1,
55 wxWindowID id
= wxID_ANY
,
56 const wxString
& name
= wxToolBarNameStr
);
57 #endif // wxUSE_TOOLBAR
59 virtual wxSize
GetMinSize() const;
62 void OnSize(wxSizeEvent
& event
);
63 void OnSysColourChanged(wxSysColourChangedEvent
& event
);
65 virtual void DoGetClientSize(int *width
, int *height
) const;
66 virtual void DoSetClientSize(int width
, int height
);
69 // override to update menu bar position when the frame size changes
70 virtual void PositionMenuBar();
71 virtual void DetachMenuBar();
72 virtual void AttachMenuBar(wxMenuBar
*menubar
);
76 // override to update statusbar position when the frame size changes
77 virtual void PositionStatusBar();
82 virtual void PositionToolBar();
83 #endif // wxUSE_TOOLBAR
86 DECLARE_DYNAMIC_CLASS(wxFrame
)
89 #endif // _WX_UNIV_FRAME_H_