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

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

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_thumbnail_data_set (
        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 Only the icon title (IG_GUI_THUMBNAIL_ICON_TITLE) can be changed.
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
CHAR szTitle[128];
HWND hWndThumb;
UINT nIndex;
IG_GUI_thumbnail_data_set(hWndThumb, nIndex, IG_GUI_THUMBNAIL_ICON_TITLE,
(LPVOID)szTitle);