]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/toplevel.h
Applied patch [ 546335 ] Added Automation types and array access
[wxWidgets.git] / include / wx / os2 / toplevel.h
index a54b9d9602f40f9fbc17b4300c1a5f1904a0f974..b45053a8622c38c4b5e787b5bb4d56b4eb3e3a27 100644 (file)
@@ -67,6 +67,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
@@ -84,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
@@ -124,12 +131,16 @@ protected:
                                 ) const;
 
     //
-    // Get the OS/2 window flags corresponding to wxWindows ones
+    // Translate wxWindows 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?
@@ -151,10 +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
 
 //