ImageGear Professional DLL v18.1 for Windows
IG_GUI_thumbnail_hit_test
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Thumbnail Functions > IG_GUI_thumbnail_hit_test

Glossary Item Box

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

©2014. Accusoft Corporation. All Rights Reserved.