Compartilhar via


LB_ITEMFROMPOINT (Windows CE 5.0)

Send Feedback

This message is sent by an application to retrieve the zero-based index of the item nearest the specified point in a list box.

LB_ITEMFROMPOINT wParam = 0;lParam = (LPARAM)MAKELPARAM(xPos,yPos);

Parameters

  • xPos
    Value of the low-order word of lParam. Specifies the x-coordinate of a point, relative to the upper-left corner of the client area of the list box.
  • yPos
    Value of the high-order word of lParam. Specifies the y-coordinate of a point, relative to the upper-left corner of the client area of the list box.

Return Values

The return value contains the index of the nearest item in the low-order word. The high-order word 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

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

List Boxes Messages

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.