ImageGear for C and C++ on Windows v19.4 - Updated
IG_GUI_window_CB_register
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Window Functions > IG_GUI_window_CB_register

This function registers a callback function to be called when a GUI image window is destroyed.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_window_CB_register ( 
        HWND hWndImage, 
        LPFNIG_GUIWINDESTROY lpfnDestroy, 
        LPVOID lpPrivate 
);

Arguments:

Name Type Description
hWndImage HWND Image window handle.
lpfnDestroy LPFNIG_GUIWINDESTROY Far pointer to the callback function to be called when the window is destroyed.
lpPrivate LPVOID Far pointer to the private data (passed to the callback function).

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

GUI Windows

Example:

See the example for function IG_GUI_window_create().

Remarks:

These are windows created by IG_GUI_window_create() or by currently GUI-associated calls to IG_GUI_window_associate().