]>
Commit | Line | Data |
---|---|---|
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 | ||
24ce4c18 JS |
23 | #if defined(__WXMSW__) |
24 | #define wxFrameNative wxFrameMSW | |
25 | #elif defined(__WXGTK__) | |
26 | #define wxFrameNative wxFrameGTK | |
27 | #elif defined(__WXMGL__) | |
28 | #define wxFrameNative wxFrameMGL | |
e766c8a9 SC |
29 | #elif defined(__WXMAC__) |
30 | #define wxFrameNative wxFrameMac | |
24ce4c18 JS |
31 | #endif |
32 | ||
1e6feb95 VZ |
33 | class wxFrame : public wxFrameNative |
34 | { | |
35 | public: | |
36 | wxFrame(); | |
37 | wxFrame(wxWindow *parent, | |
38 | wxWindowID id, | |
39 | const wxString& title, | |
40 | const wxPoint& pos = wxDefaultPosition, | |
41 | const wxSize& size = wxDefaultSize, | |
42 | long style = wxDEFAULT_FRAME_STYLE, | |
43 | const wxString& name = wxFrameNameStr); | |
44 | ||
45 | virtual wxPoint GetClientAreaOrigin() const; | |
98363307 | 46 | virtual bool Enable( bool enable = TRUE ); |
1e6feb95 VZ |
47 | |
48 | protected: | |
49 | void OnSize(wxSizeEvent& event); | |
50 | ||
51 | #if wxUSE_MENUS | |
52 | // override to update menu bar position when the frame size changes | |
53 | virtual void PositionMenuBar(); | |
54 | #endif // wxUSE_MENUS | |
55 | ||
56 | DECLARE_EVENT_TABLE() | |
57 | DECLARE_DYNAMIC_CLASS(wxFrame) | |
58 | }; | |
59 | ||
60 | #endif // _WX_UNIV_FRAME_H_ |