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

This commit is contained in:
Nikolay Sivov 2009-04-26 12:39:36 +04:00 committed by Alexandre Julliard
parent d1d7dfab64
commit 82744c93e0
1 changed files with 13 additions and 1 deletions

View File

@ -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);
}
}