In WIN_UpdateNCRgn, do not send in WM_NCPAINT a region that is used

afterwards, but a copy of it.
This commit is contained in:
Eric Pouech 1999-07-18 18:26:58 +00:00 committed by Alexandre Julliard
parent ec133cea9a
commit f0380e573c
1 changed files with 7 additions and 1 deletions

View File

@ -232,8 +232,14 @@ copyrgn:
if( hClip ) /* NOTE: WM_NCPAINT allows wParam to be 1 */
{
if ( hClip == hrgnRet && hrgnRet > 1 ) {
hClip = CreateRectRgn( 0, 0, 0, 0 );
CombineRgn( hClip, hrgnRet, 0, RGN_COPY );
}
SendMessageA( wnd->hwndSelf, WM_NCPAINT, hClip, 0L );
if( (hClip > 1)&& (hClip != hRgn) && (hClip != hrgnRet) ) DeleteObject( hClip );
if( (hClip > 1) && (hClip != hRgn) && (hClip != hrgnRet) )
DeleteObject( hClip );
/*
* Since all Window locks are suspended while processing the WM_NCPAINT
* we want to make sure the window still exists before continuing.