1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/toplevel.h
3 // Purpose: wxTopLevelWindowMac is the MSW implementation of wxTLW
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_TOPLEVEL_H_
13 #define _WX_MSW_TOPLEVEL_H_
16 #pragma interface "toplevel.h"
19 // ----------------------------------------------------------------------------
20 // wxTopLevelWindowMac
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxTopLevelWindowMac
: public wxTopLevelWindowBase
26 // constructors and such
27 wxTopLevelWindowMac() { Init(); }
29 wxTopLevelWindowMac(wxWindow
*parent
,
31 const wxString
& title
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 long style
= wxDEFAULT_FRAME_STYLE
,
35 const wxString
& name
= wxFrameNameStr
)
39 (void)Create(parent
, id
, title
, pos
, size
, style
, name
);
42 bool Create(wxWindow
*parent
,
44 const wxString
& title
,
45 const wxPoint
& pos
= wxDefaultPosition
,
46 const wxSize
& size
= wxDefaultSize
,
47 long style
= wxDEFAULT_FRAME_STYLE
,
48 const wxString
& name
= wxFrameNameStr
);
50 virtual ~wxTopLevelWindowMac();
52 // implement base class pure virtuals
53 virtual void Maximize(bool maximize
= TRUE
);
54 virtual bool IsMaximized() const;
55 virtual void Iconize(bool iconize
= TRUE
);
56 virtual bool IsIconized() const;
57 virtual void SetIcon(const wxIcon
& icon
);
58 virtual void Restore();
60 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
) { return FALSE
; }
61 virtual bool IsFullScreen() const { return FALSE
; }
63 // implementation from now on
64 // --------------------------
67 // common part of all ctors
70 // is the frame currently iconized?
73 // should the frame be maximized when it will be shown? set by Maximize()
74 // when it is called while the frame is hidden
75 bool m_maximizeOnShow
;
78 // list of all frames and modeless dialogs
79 extern WXDLLEXPORT_DATA(wxWindowList
) wxModelessWindows
;
81 #endif // _WX_MSW_TOPLEVEL_H_