Upravit

Sdílet prostřednictvím


LB_ITEMFROMPOINT message

Gets the zero-based index of the item nearest the specified point in a list box.

Parameters

wParam

This parameter is not used.

lParam

The LOWORD specifies the x-coordinate of a point, relative to the upper-left corner of the client area of the list box.

The HIWORD specifies the y-coordinate of a point, relative to the upper-left corner of the client area of the list box.

Return value

The return value contains the index of the nearest item in the LOWORD. The HIWORD is zero if the specified point is in the client area of the list box, or one if it is outside the client area.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

MAKELPARAM