Expand Minimize
0 out of 1 rated this helpful - Rate this topic

CListCtrl::SetItemText

Changes the text of a list view item or subitem.

BOOL SetItemText(
   int nItem,
   int nSubItem,
   LPCTSTR lpszText 
);

Parameters

nItem
Index of the item whose text is to be set.
nSubItem
Index of the subitem, or zero to set the item label.
lpszText
Pointer to a string that contains the new item text.

Return Value

Nonzero if successful; otherwise zero.

Example

See the example for CListCtrl::InsertItem.

See Also

CListCtrl Overview | Class Members | Hierarchy Chart | CListCtrl::GetItemText

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.