comctl32: listview: Update the scroll bars after resizing the last column.

This commit is contained in:
Mikołaj Zalewski 2006-10-16 11:21:16 +02:00 committed by Alexandre Julliard
parent ab83183c03
commit 1e9acccefd
1 changed files with 6 additions and 0 deletions

View File

@ -8584,6 +8584,12 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
lpColumnInfo->rcHeader.right += dx;
if (lpnmh->iItem + 1 < DPA_GetPtrCount(infoPtr->hdpaColumns))
LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx);
else
{
/* only needs to update the scrolls */
infoPtr->nItemWidth += dx;
LISTVIEW_UpdateScroll(infoPtr);
}
LISTVIEW_UpdateItemSize(infoPtr);
if (uView == LVS_REPORT && is_redrawing(infoPtr))
{