Compartilhar via


LVM_GETITEMTEXT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message retrieves the text of a list-view item or subitem. You can send this message explicitly or by using the ListView_GetItemText macro.

Syntax

LVM_GETITEMTEXT wParam = (WPARAM)(int) iItem; 
    lParam = (LPARAM)(LVITEM FAR *) pitem;

Parameters

  • iItem
    Index of the list-view item.
  • pitem
    Pointer to an LVITEM structure. The iSubItem member specifies the index of a subitem, or it can be zero to get the item label. The pszText member points to a buffer that receives the text, and the cchTextMax member specifies the size of the buffer.

Return Value

If you send this message explicitly, it returns the length of the retrieved string.

If you can send this message implicitly by using the ListView_GetItemText macro, there is no return value.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

ListView_GetItemText
LVITEM
List-View Controls Messages