In SWP_DoNCCalcSize() when determining whether the client area has

moved, use the client coordinates as they are: not relative to its
window coordinates.
This commit is contained in:
Rein Klazes 2000-10-25 20:29:06 +00:00 committed by Alexandre Julliard
parent 2bf380c72f
commit 354f9826b8

View file

@ -2533,14 +2533,9 @@ static UINT SWP_DoNCCalcSize( WND* wndPtr, WINDOWPOS* pWinpos,
/* FIXME: WVR_ALIGNxxx */
/* check if client area moved relative to the window */
if ( ( (wndPtr->rectClient.left - pNewClientRect->left) !=
(wndPtr->rectWindow.left - pNewWindowRect->left) ) ||
( (wndPtr->rectClient.top - pNewClientRect->top) !=
(wndPtr->rectWindow.top - pNewWindowRect->top) ) )
{
if( pNewClientRect->left != wndPtr->rectClient.left ||
pNewClientRect->top != wndPtr->rectClient.top )
pWinpos->flags &= ~SWP_NOCLIENTMOVE;
}
if( (pNewClientRect->right - pNewClientRect->left !=
wndPtr->rectClient.right - wndPtr->rectClient.left) ||