/////////////////////////////////////////////////////////////////////////////
// Name: frame.h
-// Purpose: wxFrameMac class
+// Purpose: wxFrame class
// Author: AUTHOR
// Modified by:
// Created: ??/??/98
// RCS-ID: $Id$
// Copyright: (c) AUTHOR
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_FRAME_H_
class WXDLLEXPORT wxStatusBar;
class WXDLLEXPORT wxMacToolTip ;
-class WXDLLEXPORT wxFrameMac: public wxFrameBase {
-
- DECLARE_DYNAMIC_CLASS(wxFrameMac)
-
+class WXDLLEXPORT wxFrame: public wxFrameBase
+{
public:
// construction
- wxFrameMac() { Init(); }
- wxFrameMac(wxWindow *parent,
+ wxFrame() { Init(); }
+ wxFrame(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr);
- virtual ~wxFrameMac();
+ virtual ~wxFrame();
// implementation only from now on
// -------------------------------
// override some more virtuals
- virtual bool Enable(bool enable) ;
+ virtual bool Enable(bool enable = TRUE) ;
// get the origin of the client area (which may be different from (0, 0)
// if the frame has a toolbar) in client coordinates
wxMacToolTip* m_hwndToolTip ;
#endif // tooltips
+ // called by wxWindow whenever it gets focus
+ void SetLastFocus(wxWindow *win) { m_winLastFocused = win; }
+ wxWindow *GetLastFocus() const { return m_winLastFocused; }
+
protected:
// common part of all ctors
void Init();
private:
DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxFrame)
};
#endif