comctl32/listview: Redraw items after insert/delete.

This commit is contained in:
Daniel Jelinski 2013-01-05 16:09:48 +01:00 committed by Alexandre Julliard
parent 67eb9744d9
commit 7b1fd9e527
1 changed files with 3 additions and 5 deletions

View File

@ -5621,9 +5621,8 @@ static void LISTVIEW_ScrollOnInsert(LISTVIEW_INFO *infoPtr, INT nItem, INT dir)
TRACE("rcScroll=%s, dx=%d\n", wine_dbgstr_rect(&rcScroll), dir * infoPtr->nItemHeight); TRACE("rcScroll=%s, dx=%d\n", wine_dbgstr_rect(&rcScroll), dir * infoPtr->nItemHeight);
if (IntersectRect(&rcScroll, &rcScroll, &infoPtr->rcList)) if (IntersectRect(&rcScroll, &rcScroll, &infoPtr->rcList))
{ {
TRACE("Scrolling rcScroll=%s, rcList=%s\n", wine_dbgstr_rect(&rcScroll), wine_dbgstr_rect(&infoPtr->rcList)); TRACE("Invalidating rcScroll=%s, rcList=%s\n", wine_dbgstr_rect(&rcScroll), wine_dbgstr_rect(&infoPtr->rcList));
ScrollWindowEx(infoPtr->hwndSelf, 0, dir * infoPtr->nItemHeight, InvalidateRect(infoPtr->hwndSelf, &rcScroll, TRUE);
&rcScroll, &rcScroll, 0, 0, SW_ERASE | SW_INVALIDATE);
} }
/* report has only that column, so we're done */ /* report has only that column, so we're done */
@ -5636,8 +5635,7 @@ static void LISTVIEW_ScrollOnInsert(LISTVIEW_INFO *infoPtr, INT nItem, INT dir)
rcScroll.bottom = nPerCol * infoPtr->nItemHeight; rcScroll.bottom = nPerCol * infoPtr->nItemHeight;
OffsetRect(&rcScroll, Origin.x, Origin.y); OffsetRect(&rcScroll, Origin.x, Origin.y);
if (IntersectRect(&rcScroll, &rcScroll, &infoPtr->rcList)) if (IntersectRect(&rcScroll, &rcScroll, &infoPtr->rcList))
ScrollWindowEx(infoPtr->hwndSelf, 0, dir * infoPtr->nItemHeight, InvalidateRect(infoPtr->hwndSelf, &rcScroll, TRUE);
&rcScroll, &rcScroll, 0, 0, SW_ERASE | SW_INVALIDATE);
} }
/*** /***