WM_WINDOWPOSCHANGED should always contain a final window position.

This commit is contained in:
Dmitry Timoshkov 2004-06-23 20:50:30 +00:00 committed by Alexandre Julliard
parent e8d86b7cd4
commit d530e54883
1 changed files with 10 additions and 2 deletions

View File

@ -1027,8 +1027,16 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
TRACE("\tstatus flags = %04x\n", winpos->flags & SWP_AGG_STATUSFLAGS);
if (((winpos->flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE))
SendMessageA( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos );
/* WM_WINDOWPOSCHANGED is send even if SWP_NOSENDCHANGING is set */
{
/* 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;
SendMessageW( winpos->hwnd, WM_WINDOWPOSCHANGED, 0, (LPARAM)winpos );
}
return TRUE;
}