comctl32: listview: update the scroll bars after resizing the last column

Mikołaj Zalewski mikolaj at zalewski.pl
Mon Oct 16 04:21:16 CDT 2006


-------------- next part --------------
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))
 		{
-- 
1.4.2.3


More information about the wine-patches mailing list