Applied [ 1223122 ] [wxMSW] Proper repainting when resizing - take 2
Jamie Gadd git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2366,15 +2366,11 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
|||||||
AutoHRGN hrgnClient(::CreateRectRgnIndirect(&rc));
|
AutoHRGN hrgnClient(::CreateRectRgnIndirect(&rc));
|
||||||
AutoHRGN hrgnNew(::CreateRectRgn(lpPos->x, lpPos->y,
|
AutoHRGN hrgnNew(::CreateRectRgn(lpPos->x, lpPos->y,
|
||||||
lpPos->cx, lpPos->cy));
|
lpPos->cx, lpPos->cy));
|
||||||
AutoHRGN hrgn(::CreateRectRgn(0, 0, 0, 0));
|
|
||||||
|
|
||||||
// we need to invalidate any new exposed areas here
|
// we need to invalidate any new exposed areas here
|
||||||
// to force them to repaint
|
// to force them to repaint
|
||||||
if ( ::CombineRgn(hrgn, hrgnNew, hrgnClient, RGN_DIFF) != NULLREGION )
|
if ( ::CombineRgn(hrgnNew, hrgnNew, hrgnClient, RGN_DIFF) != NULLREGION )
|
||||||
::InvalidateRgn(GetHwnd(), hrgn, TRUE);
|
::InvalidateRgn(GetHwnd(), hrgnNew, TRUE);
|
||||||
if ( ::CombineRgn(hrgn, hrgnClient, hrgnNew, RGN_DIFF) != NULLREGION )
|
|
||||||
::InvalidateRgn(GetHwnd(), hrgn, TRUE);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user