LImageListControl::HitTest

#include "ltwrappr.h"

L_INT LImageListControl::HitTest(pPoint)

POINT * 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.

Platforms

Win32, x64.

See Also

Functions:

Class Members

Topics:

Using the ImageList Control

Example

For an example, refer to LImageListControl::MsgProcCallBack.

Help Version 20.0.2020.4.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help