CListCtrl::GetItemText

This method retrieves the text of a list view item or subitem. If nSubItem is zero, this method retrieves the item label; if nSubItem is nonzero, it retrieves the text of the subitem. For more information about the subitem argument, see the discussion of the LV_ITEM structure in CListCtrl::GetItem.

At a Glance

Header file: Afxcmn.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CListCtrl::GetItem