Call this function to register a callback function that is to be called to sort the thumbnails in the window hWndThumbnail.
Declaration:
Copy Code | |
---|---|
AT_ERRCOUNT ACCUAPI IG_GUI_thumbnail_sort ( HWND hWndThumbnail, LPFNIG_GUITHUMBCOMP lpfnThumbCompare, LPVOID lpPrivate ); |
Arguments:
hWndThumbnail | Handle of Thumbnail window. |
lpfnThumbCompare | Far pointer to callback function to be called to compare thumbnails for a sort. |
lpPrivate | Far pointer to private data to be passed to the callback function. |
Return Value:
Returns the number of ImageGear errors that occurred during this function call.
Supported Raster Image Formats:
All pixel formats supported by ImageGear Professional.
The callback used with this function correctly reports color space and bit depth for these pixel formats only: Indexed RGB – 1, 4, 8 bpp; |
Sample:
ThumbnailExample:
For an example showing the use of this and other IG_GUI_Thumbnail functions and callbacks, see sample application THUMB.
Remarks:
See also the description for the callback type LPFNIG_GUITHUMBCOMP. It is your callback function that performs the actual sorting.
See also IG_GUI_thumbnail_attribute_set() function. |