]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/frame.h
693d7e23777d38e53bc03b2d135ef1e5e92fdcc7
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 #if defined(__WXMSW__)
24 #define wxFrameNative wxFrameMSW
25 #elif defined(__WXGTK__)
26 #define wxFrameNative wxFrameGTK
27 #elif defined(__WXMGL__)
28 #define wxFrameNative wxFrameMGL
29 #elif defined(__WXMAC__)
30 #define wxFrameNative wxFrameMac
33 class wxFrame
: public wxFrameNative
37 wxFrame(wxWindow
*parent
,
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
);
45 virtual wxPoint
GetClientAreaOrigin() const;
48 void OnSize(wxSizeEvent
& event
);
51 // override to update menu bar position when the frame size changes
52 virtual void PositionMenuBar();
56 DECLARE_DYNAMIC_CLASS(wxFrame
)
59 #endif // _WX_UNIV_FRAME_H_