virtual bool Show(bool show = TRUE);
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
virtual bool Show(bool show = TRUE);
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
+ // event handlers
+ void OnActivate(wxActivateEvent& event);
+
+ // called by wxWindow whenever it gets focus
+ void SetLastFocus(wxWindow *win) { m_winLastFocused = win; }
+ wxWindow *GetLastFocus() const { return m_winLastFocused; }
+
// common part of Iconize(), Maximize() and Restore()
void DoShowWindow(int nShowCmd);
// common part of Iconize(), Maximize() and Restore()
void DoShowWindow(int nShowCmd);
// translate wxWindows flags to Windows ones
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
// choose the right parent to use with CreateWindow()
virtual WXHWND MSWGetParent() const;
// translate wxWindows flags to Windows ones
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
// choose the right parent to use with CreateWindow()
virtual WXHWND MSWGetParent() const;
- // the hidden parent window for the frames which shouldn't appear in the
- // taskbar
- static wxWindow *ms_hiddenParent;
+ // the last focused child: we restore focus to it on activation
+ wxWindow *m_winLastFocused;
+
+ DECLARE_EVENT_TABLE()
+ DECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW)