comctl32/listview: Fix resizing grid drawing at right from rightmost column.
This commit is contained in:
parent
d1d7dfab64
commit
82744c93e0
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue