X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2590f154ff935ee7a24ea4d25108e8ed97a56f04..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index e725d21116..0ca6894be9 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -1182,7 +1182,7 @@ MRESULT EXPENTRY wxFrameMainWndProc( } else { - pSWP[i].x = vRectl.xLeft; + pSWP[i].x = vRectl.xLeft + nWidth; pSWP[i].y = vRectl.yBottom + nHeight; pSWP[i].cx = vRectl.xRight - (vRectl.xLeft + nWidth); pSWP[i].cy = vRectl.yTop - vRectl.yBottom - nHeight; @@ -1420,3 +1420,22 @@ wxWindow* wxFrame::GetClient() { return wxFindWinFromHandle((WXHWND)::WinWindowFromID(m_hFrame, FID_CLIENT)); } + +void wxFrame::SendSizeEvent() +{ + if (!m_bIconized) + { + RECTL vRect = wxGetWindowRect(GetHwnd()); + + ::WinPostMsg( GetHwnd() + ,WM_SIZE + ,MPFROM2SHORT( vRect.xRight - vRect.xLeft + ,vRect.xRight - vRect.xLeft + ) + ,MPFROM2SHORT( vRect.yTop - vRect.yBottom + ,vRect.yTop - vRect.yBottom + ) + ); + } +} +