]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/frame.h
nicer version compilation fix for wxUSE_WCHAR_T=0 (why should we duplicate definition...
[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
23class wxFrame : public wxFrameNative
24{
25public:
26 wxFrame();
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,
33 const wxString& name = wxFrameNameStr);
34
35 virtual wxPoint GetClientAreaOrigin() const;
98363307 36 virtual bool Enable( bool enable = TRUE );
1e6feb95
VZ
37
38protected:
39 void OnSize(wxSizeEvent& event);
40
41#if wxUSE_MENUS
42 // override to update menu bar position when the frame size changes
43 virtual void PositionMenuBar();
44#endif // wxUSE_MENUS
45
46 DECLARE_EVENT_TABLE()
47 DECLARE_DYNAMIC_CLASS(wxFrame)
48};
49
50#endif // _WX_UNIV_FRAME_H_