Commit 776cb279 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Don't repaint header when scrolling a listview vertically.

parent 1cc88177
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment