LVM_GETITEMTEXT

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.

LVM_GETITEMTEXT wParam = (WPARAM)(int) iItem; 
lParam = (LPARAM)(LV_ITEM 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 Values

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

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

ListView_GetItemText, LVITEM

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.