Commit 82744c93 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Fix resizing grid drawing at right from rightmost column.

parent d1d7dfab
......@@ -9057,9 +9057,21 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
}
/* when shrinking the last column clear the now unused field */
if (lpnmh->iItem == DPA_GetPtrCount(infoPtr->hdpaColumns) - 1 && dx < 0)
if (lpnmh->iItem == DPA_GetPtrCount(infoPtr->hdpaColumns) - 1)
{
RECT right;
rcCol.right -= dx;
/* deal with right from rightmost column area */
right.left = rcCol.right;
right.top = rcCol.top;
right.bottom = rcCol.bottom;
right.right = infoPtr->rcList.right;
LISTVIEW_InvalidateRect(infoPtr, &right);
}
LISTVIEW_InvalidateRect(infoPtr, &rcCol);
}
}
......
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