Huw Davies : comctl32: Set the item size after LISTVIEW_ScrollColumns().
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 8 08:15:46 CDT 2015
Module: wine
Branch: master
Commit: 4f06425a0314103ff5653e6f93a6551a08c39f56
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f06425a0314103ff5653e6f93a6551a08c39f56
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Sep 7 13:51:11 2015 +0100
comctl32: Set the item size after LISTVIEW_ScrollColumns().
LISTVIEW_ScrollColumns() increments the item width by the scroll
delta, so we need the original width to still be present.
---
dlls/comctl32/listview.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index e1c7cea..e3fad51 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -5674,11 +5674,11 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn)
}
/* update the other column info */
- LISTVIEW_UpdateItemSize(infoPtr);
if(DPA_GetPtrCount(infoPtr->hdpaColumns) == 0)
LISTVIEW_InvalidateList(infoPtr);
else
LISTVIEW_ScrollColumns(infoPtr, nColumn, -(rcCol.right - rcCol.left));
+ LISTVIEW_UpdateItemSize(infoPtr);
return TRUE;
}
More information about the wine-cvs
mailing list