ListView_ItemSetSubitem()

Examples


The ListView_ItemSetSubitem() function sets the value of a subitem for the specified list view item.

Syntax

ListView_ItemSetSubitem(list_view_field, item_index, subitem, value)

Parameters

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.

Return value

A boolean indicating whether the subitem was set. True indicates the subitem was set, while false indicates it was not.

Comments

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.


Documentation Feedback