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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help