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

This function is called when the user selects a thumbnail in window hWndThumbnail.

Declaration:

 
Copy Code
typedef BOOL (ACCUAPI LPFNIG_GUITHUMBMOUSE) (
        LPVOID lpPrivate, 
        HWND hWndThumbnail, 
        UINT nMouseAction, 
        UINT nKeyFlags, 
        UINT x, 
        UINT y, 
        UINT nIndex
);

Arguments:

Name Type Description
lpPrivate LPVOID Far pointer to the private data passed.
hWndThumbnail HWND Thumbnail window handle.
nMouseAction UINT

Mouse notification code. Possible values are:

  • IG_GUI_MOUSE_LDOWN
  • IG_GUI_MOUSE_LUP
  • IG_GUI_MOUSE_LDBL
  • IG_GUI_MOUSE_RDOWN
  • IG_GUI_MOUSE_RUP
  • IG_GUI_MOUSE
  • IG_GUI_MOUSE_RDBL
nKeyFlags UINT WM_ flags for mouse messages.
x, y UINT Coordinates of the mouse pointer.
nIndex UINT Index of a thumbnail icon.

Return Value:

This function should return TRUE to allow further zooming or to select an icon.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Remarks:

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