This topic has not yet been rated - Rate this topic

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

MAKELPARAM

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.