Share via


LVM_HITTEST

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message determines which list-view item, if any, is at a specified position. You can send this message explicitly or by using the ListView_HitTest macro.

Syntax

LVM_HITTEST wParam = 0; 
    lParam = (LPARAM)(LV_HITTESTINFO FAR *) pinfo;

Parameters

  • wParam
    Not used.
  • pinfo
    Pointer to an LVHITTESTINFO structure that contains the position to hit test and receives hit test result data.

Return Value

The index of the item at the specified position, if any, indicates success. –1 indicates failure.

Remarks

Related macro: ListView_HitTest

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

LVHITTESTINFO
List-View Controls Messages