X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ec46a5b35233f3c69c5b73e4b0b36f44c650633..f9e45bd7de9f91efec4edbc0889ea6b2903eaa90:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 97a1e94984..8da4f9c1a7 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -314,7 +314,6 @@ wxWindow::~wxWindow() { if (pFrame->GetLastFocus() == this) pFrame->SetLastFocus((wxWindow*)NULL); - break; } } if (m_parent) @@ -1449,6 +1448,17 @@ void wxWindow::DoMoveWindow( , int nHeight ) { + RECTL vRect; + HWND hParent; + wxWindow* pParent = GetParent(); + + if (pParent) + hParent = GetWinHwnd(pParent); + else + hParent = HWND_DESKTOP; + ::WinQueryWindowRect(hParent, &vRect); + nY = vRect.yTop - (nY + nHeight); + if ( !::WinSetWindowPos( GetHwnd() ,HWND_TOP ,(LONG)nX