From 8beefb51bf8ddd730c7e727e90979b20b0a6ed73 Mon Sep 17 00:00:00 2001 From: Abey George Date: Sun, 18 Jul 1999 15:40:03 +0000 Subject: [PATCH] Validate the parent with the child window client rectangle when the parent's update region is not empty. --- windows/winpos.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/windows/winpos.c b/windows/winpos.c index 087be53b533..fc517145ff8 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -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) ?