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.
This commit is contained in:
parent
07cc9a34a8
commit
4f06425a03
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue