X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/551a6c64bb40692f6dd5ae86c309eb22ddfa20c5..c2bbeff0048b6f02bf1ef41edc6c7a3ce148f907:/include/wx/mac/frame.h?ds=sidebyside diff --git a/include/wx/mac/frame.h b/include/wx/mac/frame.h index 39498bd06b..95ddac84d1 100644 --- a/include/wx/mac/frame.h +++ b/include/wx/mac/frame.h @@ -6,7 +6,7 @@ // Created: ??/??/98 // RCS-ID: $Id$ // Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_FRAME_H_ @@ -60,7 +60,7 @@ public: // ------------------------------- // 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 @@ -101,6 +101,10 @@ public: 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();