+ ::WinQueryWindowRect(hWnd, &vRect);
+ //
+ // Find the difference between the entire window (title bar and all)
+ // and the client area; add this to the new client size to move the
+ // window. OS/2 is backward from windows on height
+ //
+ int nActualWidth = vRect2.xRight - vRect2.xLeft - vRect.xRight + nWidth;
+ int nActualHeight = vRect2.yTop - vRect2.yBottom - vRect.yTop + nHeight;
+
+ nActualWidth = nWidth;
+ nActualHeight = nHeight;
+ //
+ // If there's a parent, must subtract the parent's bottom left corner
+ // since MoveWindow moves relative to the parent
+ //
+ POINTL vPoint;
+
+ vPoint.x = vRect2.xLeft;
+ vPoint.y = vRect2.yBottom;
+ if (pParent)
+ {
+ ::WinMapWindowPoints(hWnd, hParentWnd, &vPoint, 1);
+ }
+#endif
+
+ DoMoveWindow(vPoint.x, vPoint.y, nActualWidth, nActualHeight);
+
+ wxSizeEvent vEvent(wxSize(nWidth, nHeight), m_windowId);