]> git.saurik.com Git - wxWidgets.git/commitdiff
Removal of WXPM ifdefs.
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 7 Jan 2002 16:44:11 +0000 (16:44 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 7 Jan 2002 16:44:11 +0000 (16:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/toplevel.h

index 32ac5db2bfa495b5a190bf99ab1ea7b96d23c484..ce0ec8aecee7f703d73ad4d7a5ff0c1f9ed8842d 100644 (file)
@@ -143,11 +143,14 @@ 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
+    // Override in derived, platfrom specific, class if your OS coordinate
+    // system uses anything other than the top left as 0,0.  The second
+    // method updates any internal sizing parameters such as OS/2's SWP struct
+    inline virtual void AlterChildPos(void) { }
+    inline virtual void UpdateInternalSize( wxWindow* WXUNUSED(pChild)
+                                           ,int WXUNUSED(nHeight)
+                                          ) { }
+
 protected:
     // the frame client to screen translation should take account of the
     // toolbar which may shift the origin of the client area
@@ -164,9 +167,6 @@ 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()
 };