From 82744c93e0d7019017a13901c984f8bcae891fe6 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 26 Apr 2009 12:39:36 +0400 Subject: [PATCH] comctl32/listview: Fix resizing grid drawing at right from rightmost column. --- dlls/comctl32/listview.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 6301c8ac07c..b6c6c2dfd07 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -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); } }