X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45e0dc94770d598a1cc84d83730d470dd1cfbcca..ce0d1032d1c9e63bd034575542c5ee4337ab3510:/include/wx/os2/toplevel.h diff --git a/include/wx/os2/toplevel.h b/include/wx/os2/toplevel.h index 2557c3981f..cd97b3ea41 100644 --- a/include/wx/os2/toplevel.h +++ b/include/wx/os2/toplevel.h @@ -12,11 +12,7 @@ #ifndef _WX_MSW_TOPLEVEL_H_ #define _WX_MSW_TOPLEVEL_H_ -#ifdef __GNUG__ - #pragma interface "toplevel.h" -#endif - -enum ETemplateID { kResizeableDialog = 127 +enum ETemplateID { kResizeableDialog = 130 ,kCaptionDialog ,kNoCaptionDialog }; @@ -67,6 +63,8 @@ public: virtual void Restore(void); virtual void SendSizeEvent(void); virtual void SetIcon(const wxIcon& rIcon); + virtual void SetIcons(const wxIconBundle& rIcons); + virtual bool Show(bool bShow = TRUE); virtual bool ShowFullScreen( bool bShow ,long lStyle = wxFULLSCREEN_ALL @@ -83,12 +81,12 @@ public: // Implementation from now on // -------------------------- // - virtual void AlterChildPos(void); // OS/2 child control positioning - virtual void UpdateInternalSize( wxWindow* pChild - ,int nWidth - ,int nHeight - ); 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 @@ -129,12 +127,16 @@ protected: ) const; // - // Get the OS/2 window flags corresponding to wxWindows ones + // Translate wxWidgets flags into OS flags // - // The functions returns the flags (WS_XXX) directly and puts the ext - // (WS_EX_XXX) flags into the provided pointer if not NULL + virtual WXDWORD OS2GetStyle( long lFlag + ,WXDWORD* pdwExstyle + ) const; + // - long OS2GetCreateWindowFlags(long* lExflags) const; + // Choose the right parent to use with CreateWindow() + // + virtual WXHWND OS2GetParent(void) const; // // Is the frame currently iconized? @@ -156,16 +158,16 @@ protected: bool m_bFsIsMaximized; bool m_bFsIsShowing; + wxWindow* m_pWinLastFocused; + WXHWND m_hFrame; SWP m_vSwp; SWP m_vSwpClient; static bool m_sbInitialized; -}; // end of CLASS wxTopLevelWindowOS2 + static wxWindow* m_spHiddenParent; -// -// List of all frames and modeless dialogs -// -extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows; + DECLARE_EVENT_TABLE() +}; // end of CLASS wxTopLevelWindowOS2 #endif // _WX_MSW_TOPLEVEL_H_