ListView_GetItemPosition macro (commctrl.h)

Gets the position of a list-view item. You can use this macro or explicitly send the LVM_GETITEMPOSITION message.

Syntax

void ListView_GetItemPosition(
   hwndLV,
   i,
   ppt
);

Parameters

hwndLV

Type: HWND

A handle to the list-view control.

i

Type: int

The index of the list-view item.

ppt

Type: POINT*

A pointer to a POINT structure that receives the position of the item's upper-left corner, in view coordinates.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h