SEC_TREECLASS::SetItemString

BOOLSEC_TREECLASS::SetItemString(HTREEITEMhti, intnSubItem, const CString&strItem)

Sets the text of the specified item or subitem.

Defined in: trcore.inl

Return Value

Nonzero if successful; otherwise 0.

Parameters

hti

Handle of an item in the tree.

nSubItem

index of the subitem column.

strItem

Reference to the new subitem text.

Comments

In multi-column operations, sets string of subitem associated with the specified item. This will only work as expected if StoreSubItemText( TRUE ) has been called previously. By default, text for subitems is provided by the LVN_GETDISPINFO callback.