]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/toplevel.h
Use the correct WXDLLEXPORT declaration.
[wxWidgets.git] / include / wx / os2 / toplevel.h
index 8f49bb12fe195584d9a2074e1c74cc44a1bf9aba..4e056f9da413744df2fdc6585e9a55ee70df256b 100644 (file)
@@ -16,7 +16,7 @@
     #pragma interface "toplevel.h"
 #endif
 
     #pragma interface "toplevel.h"
 #endif
 
-enum ETemplateID { kResizeableDialog = 1000
+enum ETemplateID { kResizeableDialog = 130
                   ,kCaptionDialog
                   ,kNoCaptionDialog
                  };
                   ,kCaptionDialog
                   ,kNoCaptionDialog
                  };
@@ -65,7 +65,10 @@ public:
            virtual bool IsMaximized(void) const;
            virtual void Maximize(bool bMaximize = TRUE);
            virtual void Restore(void);
            virtual bool IsMaximized(void) const;
            virtual void Maximize(bool bMaximize = TRUE);
            virtual void Restore(void);
+           virtual void SendSizeEvent(void);
            virtual void SetIcon(const wxIcon& rIcon);
            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
            virtual bool Show(bool bShow = TRUE);
            virtual bool ShowFullScreen( bool bShow
                                        ,long lStyle = wxFULLSCREEN_ALL
@@ -82,10 +85,12 @@ public:
     // Implementation from now on
     // --------------------------
     //
     // Implementation from now on
     // --------------------------
     //
-           virtual void AlterChildPos(void); // OS/2 child control positioning
-           virtual void UpdateInternalSize( wxWindow* pChild
-                                           ,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
 protected:
     //
     // Common part of all ctors
@@ -126,12 +131,16 @@ protected:
                                 ) const;
 
     //
                                 ) const;
 
     //
-    // Get the OS/2 window flags corresponding to wxWindows ones
+    // Translate wxWidgets flags into OS flags
+    //
+    virtual WXDWORD OS2GetStyle( long     lFlag
+                                ,WXDWORD* pdwExstyle
+                               ) const;
+
     //
     //
-    // The functions returns the flags (WS_XXX) directly and puts the ext
-    // (WS_EX_XXX) flags into the provided pointer if not NULL
+    // Choose the right parent to use with CreateWindow()
     //
     //
-    long OS2GetCreateWindowFlags(long* lExflags) const;
+    virtual WXHWND  OS2GetParent(void) const;
 
     //
     // Is the frame currently iconized?
 
     //
     // Is the frame currently iconized?
@@ -153,15 +162,16 @@ protected:
     bool                            m_bFsIsMaximized;
     bool                            m_bFsIsShowing;
 
     bool                            m_bFsIsMaximized;
     bool                            m_bFsIsShowing;
 
+    wxWindow*                       m_pWinLastFocused;
+
     WXHWND                          m_hFrame;
     SWP                             m_vSwp;
     SWP                             m_vSwpClient;
     WXHWND                          m_hFrame;
     SWP                             m_vSwp;
     SWP                             m_vSwpClient;
-}; // end of CLASS wxTopLevelWindowOS2
+    static bool                     m_sbInitialized;
+    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_
 
 
 #endif // _WX_MSW_TOPLEVEL_H_