From 02d6f1bd31c9c5ef73c0c192154a98ec849540df Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Tue, 3 Jan 2006 11:08:11 +0000 Subject: [PATCH] Fixed bug introduced by previous change (patch #1395852) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os2/window.cpp b/src/os2/window.cpp index efee222aa0..8ee37591db 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1561,7 +1561,7 @@ void wxWindowOS2::DoMoveWindow( // // Uninitialized // - ::WinQueryWindowPos(hWnd, &m_vWinSwp); + ::WinQueryWindowPos(GetHwnd(), &m_vWinSwp); else { int nYDiff = m_vWinSwp.cy - nHeight; @@ -1600,8 +1600,8 @@ void wxWindowOS2::DoMoveWindow( nAdjustWidth = 0L; else nAdjustWidth = nVSBWidth; - ::WinQueryWindowPos(hWnd, &vSwpScroll); - ::WinSetWindowPos( hWnd + ::WinQueryWindowPos(GetHwnd(), &vSwpScroll); + ::WinSetWindowPos( GetHwnd() ,HWND_TOP ,vSwpScroll.x ,vSwpScroll.y + nAdjustHeight -- 2.45.2