ImageGear for C and C++ on Windows v19.6 - Updated
IG_dspl_resize_handle
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_resize_handle

This function is to be called during WM_SIZE message handling and it recalculates all the parameters according to the new window width and height.

Declaration:

 
Copy Code
AT_ERRCOUNT  ACCUAPI IG_dspl_resize_handle( 
        [IN] HIGEAR hIGear, 
        [IN] DWORD dwGrpID,
        [IN] HWND hWnd 
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of group which is used to display the image on the hWnd.
hWnd HWND Handle of window where the image is displayed.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

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

Sample:

Magnify, Medical, Image Util, Panning, Vector, Flashpix

Example:

 
Copy Code
HIGEAR            hIGear;       /* HIGEAR handle of image  */ 
DWORD           nGrpID;        /* display group identifier */
 ...
case WM_SIZE:
        /* handle window resizing */
        IG_dspl_resize_handle( hIGear, nGrpID, hWnd );
        break;
 ...