X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ed98c6a3b7f2be77ea16b5d26467796c1be9f4d..ba8a4f660ae54de211a5869d7ea2c86cfd47cfeb:/include/wx/os2/toplevel.h diff --git a/include/wx/os2/toplevel.h b/include/wx/os2/toplevel.h index d0e1a3e469..0ab1d94d19 100644 --- a/include/wx/os2/toplevel.h +++ b/include/wx/os2/toplevel.h @@ -16,7 +16,7 @@ #pragma interface "toplevel.h" #endif -enum ETemplateID { kResizeableDialog = 127 +enum ETemplateID { kResizeableDialog = 130 ,kCaptionDialog ,kNoCaptionDialog }; @@ -86,6 +86,11 @@ public: // -------------------------- // PSWP GetSwpClient(void) { return &m_vSwpClient; } + + void OnActivate(wxActivateEvent& rEvent); + + void SetLastFocus(wxWindow *pWin) { m_pWinLastFocused = pWin; } + wxWindow* GetLastFocus(void) const { return m_pWinLastFocused; } protected: // // Common part of all ctors @@ -157,11 +162,15 @@ protected: bool m_bFsIsMaximized; bool m_bFsIsShowing; + wxWindow* m_pWinLastFocused; + WXHWND m_hFrame; SWP m_vSwp; SWP m_vSwpClient; static bool m_sbInitialized; static wxWindow* m_spHiddenParent; + + DECLARE_EVENT_TABLE() }; // end of CLASS wxTopLevelWindowOS2 //