Don't repaint header when scrolling a listview vertically.

This commit is contained in:
Gerard Patel 2002-01-31 20:38:25 +00:00 committed by Alexandre Julliard
parent 1cc881772c
commit 776cb279f2
1 changed files with 11 additions and 1 deletions

View File

@ -7564,7 +7564,17 @@ static LRESULT LISTVIEW_VScroll(HWND hwnd, INT nScrollCode, SHORT nCurrentPos,
{
scrollInfo.fMask = SIF_POS;
SetScrollInfo(hwnd, SB_VERT, &scrollInfo, TRUE);
InvalidateRect(hwnd, NULL, TRUE);
if (IsWindowVisible(infoPtr->hwndHeader))
{
RECT rListview, rcHeader, rDest;
GetClientRect(hwnd, &rListview);
GetWindowRect(infoPtr->hwndHeader, &rcHeader);
MapWindowPoints((HWND) NULL, hwnd, (LPPOINT) &rcHeader, 2);
SubtractRect(&rDest, &rListview, &rcHeader);
InvalidateRect(hwnd, &rDest, TRUE);
}
else
InvalidateRect(hwnd, NULL, TRUE);
}
}