The ListView_ItemSetSubitem() function sets the value of a subitem for the specified list view item.
ListView_ItemSetSubitem(list_view_field, item_index, subitem, value)
• list_view_field – The list view field containing the specified item.
• item_index – A long integer specifying the list view item for which a subitem is being set.
• subitem – An integer specifying the subitem to set.
• value – A string containing the new subitem.
A boolean indicating whether the subitem was set. True indicates the subitem was set, while false indicates it was not.
You can use the ListView_ItemSetSubitem() function to set the label of a list view item by specifying 0 or the constant LV_ITEM_LABEL as the subitem to set.