LImageListControl::HitTest

#include "ltwrappr.h"

L_INT LImageListControl::HitTest(pPoint)

POINT L_FAR * pPoint;

/* coordinate to test */

Queries the ImageList Control for the index of the item at the specified location.

Parameter

Description

pPoint

Pointer to a POINT structure containing the location to test.

Returns

>=0

The index of the item at the specified location.

< SUCCESS

An error occurred. Refer to Return Codes.

Comments

This function will return the 0 based index of the item at the specified location if one exists.

The location is in MM_TEXT mapping mode (pixels), and is relative to the client area of the control's window.

Required DLLs and Libraries

LTDIS
LTFIL
LTIMG

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Using the ImageList Control

Example

For an example, refer to LImageListControl::MsgProcCallBack.