ImageGear for C and C++ on Windows v19.3 - Updated
LPFNIG_GUITHUMBLOAD
API Reference Guide > Core Component API Reference > Core Component Callback Functions Reference > LPFNIG_GUITHUMBLOAD

This function is called when the user loads a thumbnail in the window hwndThumbnail.

Declaration:

 
Copy Code
typedef AT_BOOL (LPACCUAPI LPFNIG_GUITHUMBLOAD)( 
        LPVOID lpPrivate,
        HWND hwndThumbnail, 
        const LPSTR lpszFileName
);

Arguments:

Name Type Description
lpPrivate LPVOID Private data passed.
hwndThumbnail HWND Thumbnail window handle.
lpszFileName const LPSTR File name of the thumbnail.

Return Value:

None

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Example:

 
Copy Code
 /* CB function*/
AT_BOOL MyLoadCB(LPVOID lpPrivate,  HWND hwndThumbnail,   const LPSTR lpszFileName)
{
 /* just a test */ 
MessageBox(hwndThumbnail, (LPCTSTR) lpszFileName, "Thumbnail file Name", MB_OK); 
return TRUE;
}
...
?/* register Load CB */
IG_GUI_thumbnail_load_CB_register(hwndThumbnail, MyLoadCB, NULL);

Remarks:

This type of callback function is registered by a call to the IG_GUI_thumbnail_load_CB_register() function.