ListView_GetItemText
TOC
Collapse the table of content
Expand the table of content

ListView_GetItemText macro

Gets the text of a list-view item or subitem. You can use this macro or send the LVM_GETITEMTEXT message explicitly.

Syntax


void ListView_GetItemText(
   HWND   hwnd,
   int    iItem,
   int    iSubItem,
   LPTSTR pszText,
   int    cchTextMax
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

iItem

Type: int

The index of the list-view item.

iSubItem

Type: int

The index of the subitem. To retrieve the item text, set iSubItem to zero.

pszText

Type: LPTSTR

A pointer to a buffer that receives the item or subitem text.

cchTextMax

Type: int

The number of characters in the pszText buffer.

Return value

No return value. To get the length of the retrieved string, send the LVM_GETITEMTEXT message explicitly.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

LVITEM

 

 

Community Additions

ADD
Show:
© 2016 Microsoft