ImageGear for C and C++ on Windows v19.10 - Updated
IG_GUI_thumbnail_hit_test
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Thumbnail Functions > IG_GUI_thumbnail_hit_test

This function tests the existence of an icon in the specified position and returns its index.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_thumbnail_hit_test ( 
        HWND hwndThumbnail, 
        INT x, 
        INT y, 
        LPINT lpIndex
);

Arguments:

Name Type Description
hwndThumbnail HWND Windows handle to the Thumbnail Window.
x INT Pointer for the test.
y INT Pointer for the test.
lpIndex LPINT Index of an icon in the specified position; -1 if there is no icon.

Supported Raster Image Formats:

This function does not process image pixels.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Example:

 
Copy Code
HWND hWndThumb;
INT nIndex;
INT x,y;
IG_GUI_thumbnail_hit_test(hWndThumb, x, y, &nIndex);

Sample:

None