Check if the window has the WS_CLIPSIBLINGS style before using the

DCX_CLIPSIBLINGS flag.
This commit is contained in:
Thuy Nguyen 1999-07-27 17:03:16 +00:00 committed by Alexandre Julliard
parent 87b81de0bc
commit f18e7c322e
1 changed files with 5 additions and 1 deletions

View File

@ -2595,8 +2595,12 @@ Pos: /* -----------------------------------------------------------------------
!= (SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER)) )
{
/* get a previous visible region for SWP_CopyValidBits() */
DWORD flags = DCX_WINDOW;
if (wndPtr->dwStyle & WS_CLIPSIBLINGS)
flags |= DCX_CLIPSIBLINGS;
visRgn = DCE_GetVisRgn(hwnd, DCX_WINDOW | DCX_CLIPSIBLINGS, 0, 0);
visRgn = DCE_GetVisRgn(hwnd, flags, 0, 0);
}
}