From c9782ca3af5474f81a9650de69559acf6d238781 Mon Sep 17 00:00:00 2001 From: David Webster Date: Mon, 7 Jan 2002 00:43:02 +0000 Subject: [PATCH] Some needed OS/2 things in the base class for OS/2 Toplevel support. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/toplevel.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 64a1c964a0..32ac5db2bf 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -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__ -- 2.45.2