Validate the parent with the child window client rectangle when the

parent's update region is not empty.
This commit is contained in:
Abey George 1999-07-18 15:40:03 +00:00 committed by Alexandre Julliard
parent c37dd06f78
commit 8beefb51bf
1 changed files with 13 additions and 0 deletions

View File

@ -2275,8 +2275,21 @@ nocopy:
if( ow < nw ) r.right = r.left + nw;
if( IntersectRect( &r, &r, &rClip ) )
{
Wnd->pDriver->pSurfaceCopy( Wnd->parent, dc, dx, dy, &r, TRUE );
/* When you copy the bits without repainting, parent doesn't
get validated appropriately. Therefore, we have to validate
the parent with the windows' updated region when the
parent's update region is not empty. */
if (Wnd->parent->hrgnUpdate != 0 && !(Wnd->parent->dwStyle & WS_CLIPCHILDREN))
{
OffsetRect(&r, dx, dy);
ValidateRect(Wnd->parent->hwndSelf, &r);
}
}
GDI_HEAP_UNLOCK( hDC );
}
ReleaseDC( (uFlags & SWP_EX_PAINTSELF) ?