comctl32: Don't redraw whole listview in double buffering mode.

This commit is contained in:
Piotr Caban 2011-06-20 12:47:02 +02:00 committed by Alexandre Julliard
parent 02c224edf9
commit 7366d159fc
1 changed files with 3 additions and 0 deletions

View File

@ -4996,6 +4996,9 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc, const RECT *prcEra
SelectObject(hdc, hbmp);
SelectObject(hdc, infoPtr->hFont);
if(GetClipBox(hdcOrig, &rcClient))
IntersectClipRect(hdc, rcClient.left, rcClient.top, rcClient.right, rcClient.bottom);
} else {
/* Save dc values we're gonna trash while drawing
* FIXME: Should be done in LISTVIEW_DrawItem() */