Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This macro retrieves some or all of a list-view item's attributes. You can use this macro or send the LVM_GETITEM message explicitly.

Syntax

BOOL ListView_GetItem( 
  HWND 
hwnd, 
  LVITEM FAR* 
pitem 
);

Parameters

hwnd

Handle to the list-view control.

pitem

Pointer to an LVITEMstructure that specifies the information to retrieve and receives information about the list-view item.

When the LVM_GETITEM message is sent, the iItemand iSubItemmembers identify the item or subitem to retrieve information about and the maskmember specifies which attributes to retrieve. For a list of possible values, see the description of the LVITEMstructure.

If the maskmember specifies the LVIF_TEXT value, the pszTextmember must contain the address of the buffer that receives the item text, and the cchTextMaxmember must specify the size of the buffer.

If the maskmember specifies the LVIF_STATE value, the stateMaskmember must specify the item state bits to retrieve. On output, the statemember contains the values of the specified state bits.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Related message:  LVM_GETITEM

Requirements

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

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.