]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/frame.h
fatal bug in wxMGL that caused hard to track crashes
[wxWidgets.git] / include / wx / univ / frame.h
CommitLineData
1e6feb95
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/frame.h
3// Purpose: wxFrame class for wxUniversal
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 19.05.01
7// RCS-ID: $Id$
442b35b5 8// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
1e6feb95
VZ
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_FRAME_H_
13#define _WX_UNIV_FRAME_H_
14
15#ifdef __GNUG__
a3870b2f 16 #pragma interface "univframe.h"
1e6feb95
VZ
17#endif
18
19// ----------------------------------------------------------------------------
20// wxFrame
21// ----------------------------------------------------------------------------
22
b85a6d85 23class wxFrame : public wxFrameBase
1e6feb95
VZ
24{
25public:
b85a6d85 26 wxFrame() {}
1e6feb95
VZ
27 wxFrame(wxWindow *parent,
28 wxWindowID id,
29 const wxString& title,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = wxDEFAULT_FRAME_STYLE,
b85a6d85
VS
33 const wxString& name = wxFrameNameStr)
34 {
35 Create(parent, id, title, pos, size, style, name);
36 }
37
38 bool Create(wxWindow *parent,
39 wxWindowID id,
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);
1e6feb95
VZ
45
46 virtual wxPoint GetClientAreaOrigin() const;
b85a6d85 47 virtual bool Enable(bool enable = TRUE);
1e6feb95
VZ
48
49protected:
50 void OnSize(wxSizeEvent& event);
51
a9152a05
VS
52 virtual void DoGetClientSize(int *width, int *height) const;
53 virtual void DoSetClientSize(int width, int height);
54
1e6feb95
VZ
55#if wxUSE_MENUS
56 // override to update menu bar position when the frame size changes
57 virtual void PositionMenuBar();
58#endif // wxUSE_MENUS
59
d08e6e59
VS
60#if wxUSE_STATUSBAR
61 // override to update statusbar position when the frame size changes
62 virtual void PositionStatusBar();
63#endif // wxUSE_MENUS
64
1e6feb95
VZ
65 DECLARE_EVENT_TABLE()
66 DECLARE_DYNAMIC_CLASS(wxFrame)
67};
68
69#endif // _WX_UNIV_FRAME_H_