-WM_WINDOWPOSCHANGED should contain the final window position

svn path=/trunk/; revision=47273
This commit is contained in:
Giannis Adamopoulos 2010-05-19 09:18:24 +00:00
parent 4b41a0b347
commit 0a81d8d27b

View file

@ -1416,7 +1416,16 @@ co_WinPosSetWindowPos(
}
if ((WinPos.flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE)
{
/* WM_WINDOWPOSCHANGED is sent even if SWP_NOSENDCHANGING is set
and always contains final window position.
*/
WinPos.x = NewWindowRect.left;
WinPos.y = NewWindowRect.top;
WinPos.cx = NewWindowRect.right - NewWindowRect.left;
WinPos.cy = NewWindowRect.bottom - NewWindowRect.top;
co_IntSendMessageNoWait(WinPos.hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM) &WinPos);
}
return TRUE;
}