mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
comctl32/listview: Fix resizing grid drawing at right from rightmost column.
This commit is contained in:
parent
d1d7dfab64
commit
82744c93e0
1 changed files with 13 additions and 1 deletions
|
@ -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 a new issue