Module: wine Branch: master Commit: 1e9acccefda4558ab4bb4f3432673f6b06607975 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1e9acccefda4558ab4bb4f3432...
Author: Mikołaj Zalewski mikolaj@zalewski.pl Date: Mon Oct 16 11:21:16 2006 +0200
comctl32: listview: Update the scroll bars after resizing the last column.
---
dlls/comctl32/listview.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 427e8bc..e7df207 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -8584,6 +8584,12 @@ static LRESULT LISTVIEW_HeaderNotificati 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)) {