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

This function returns the current setting for the thumbnail icon data indicated by nAttributeID.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_thumbnail_data_get (
        HWND hwndThumbnail, 
        UINT nIndex, 
        AT_MODE nAttributeID, 
        LPVOID lpData
);

Arguments:

Name Type Description
hwndThumbnail HWND Windows handle to the Thumbnail Window.
nIndex UINT Index of an icon.
nAttributeID AT_MODE An integer variable of type AT_MODE that indicates the attribute from which to get the current setting. These constants all have the prefix IG_GUI_THUMBNAIL_ICON_ and are defined in accucnst.h.
lpData LPVOID The current setting of the icon attribute referred to by nAttributeID.

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.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Example:

 
Copy Code
BOOL bIsMultipage;
HWND hWndThumb;
UINT nIndex;
IG_GUI_thumbnail_data_get(hWndThumb, nIndex, IG_GUI_THUMBNAIL_ICON_ISMULTIPAGE,
(LPVOID)&bIsMultipage);