]> git.saurik.com Git - wxWidgets.git/commitdiff
Some needed OS/2 things in the base class for OS/2 Toplevel support.
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 7 Jan 2002 00:43:02 +0000 (00:43 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 7 Jan 2002 00:43:02 +0000 (00:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/toplevel.h

index 64a1c964a0df543ede533060c083cd925073b7d9..32ac5db2bfa495b5a190bf99ab1ea7b96d23c484 100644 (file)
@@ -143,6 +143,11 @@ public:
     // so should be there for all platforms
     void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
 
+#ifdef __WXPM__
+    // because of OS/2's backwards coordinate system we need something
+    // to call to position child windows anytime we get resized.
+    virtual void AlterChildPos(void) = 0; // OS/2 child control positioning
+#endif
 protected:
     // the frame client to screen translation should take account of the
     // toolbar which may shift the origin of the client area
@@ -159,6 +164,9 @@ protected:
     // (menubar, toolbar and statusbar are excluded from automatic layout)
     virtual bool IsOneOfBars(const wxWindow *WXUNUSED(win)) const { return FALSE; }
 
+#ifdef __WXPM__
+    SWP                             m_vSwpClient;
+#endif
     DECLARE_EVENT_TABLE()
 };
 
@@ -176,6 +184,9 @@ protected:
 #elif defined(__WXMAC__)
     #include "wx/mac/toplevel.h"
     #define wxTopLevelWindowNative wxTopLevelWindowMac
+#elif defined(__WXPM__)
+    #include "wx/os2/toplevel.h"
+    #define wxTopLevelWindowNative wxTopLevelWindowOS2
 #endif
 
 #ifdef __WXUNIVERSAL__