/////////////////////////////////////////////////////////////////////////////
// Name: frame.h
-// Purpose: wxFrame class
+// Purpose: wxFrameMac class
// Author: AUTHOR
// Modified by:
// Created: ??/??/98
class WXDLLEXPORT wxStatusBar;
class WXDLLEXPORT wxMacToolTip ;
-class WXDLLEXPORT wxFrame: public wxFrameBase {
+class WXDLLEXPORT wxFrameMac: public wxFrameBase {
- DECLARE_DYNAMIC_CLASS(wxFrame)
+ DECLARE_DYNAMIC_CLASS(wxFrameMac)
public:
// construction
- wxFrame() { Init(); }
- wxFrame(wxWindow *parent,
+ wxFrameMac() { Init(); }
+ wxFrameMac(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr);
- virtual ~wxFrame();
-
- // implement base class pure virtuals
- virtual void Maximize(bool maximize = TRUE);
- virtual bool IsMaximized() const;
- virtual void Iconize(bool iconize = TRUE);
- virtual bool IsIconized() const;
- virtual void Restore();
- virtual void SetMenuBar(wxMenuBar *menubar);
- virtual void SetIcon(const wxIcon& icon);
+ virtual ~wxFrameMac();
// implementation only from now on
// -------------------------------
virtual void DoSetClientSize(int width, int height);
protected:
- bool m_iconized;
#if wxUSE_STATUSBAR
static bool m_useNativeStatusBar;
#endif // wxUSE_STATUSBAR
+ // the last focused child: we restore focus to it on activation
+ wxWindow *m_winLastFocused;
private:
DECLARE_EVENT_TABLE()