CListCtrl::GetItemText

Call this member function to retrieve the text of a list view item or subitem. If nSubItem is zero, this function retrieves the item label; if nSubItem is nonzero, it retrieves the text of the subitem. For more information on the subitem argument, see the discussion of the LV_ITEM structure in CListCtrl::GetItem.

Syntax

int GetItemText( int nItem, int nSubItem, LPTSTR lpszText, int nLen ) const;

CString GetItemText( int nItem, int nSubItem ) const;

At a Glance

Header File Afxcmn.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CListCtrl Overview, CListCtrl Member Functions, Control Classes, CListCtrl::GetItem