ImageGear for C and C++ on Windows v19.6 - Updated
IG_GUI_magnify_GrpID_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Magnify Functions > IG_GUI_magnify_GrpID_get

This function returns the group ID of the specified magnify window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_magnify_GrpID_get(
        HWND hwndMag,      
        DWORD* pdwGrpID
);

Arguments:

Name Type Description
HwndMag HWND Handle to magnify the window.
PdwGrpID DWORD* Pointer to where the magnify window group ID is to be received.

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:

None

Example:

 
Copy Code
/* Updating magnify window with new gamma correction:?*/
      DWORD dwGrpID;
    IG_GUI_magnify_GrpID_get(hwndMag, &dwGrpID);
IG_dspl_gamma_correction_set(hIGear, dwGrpID, IG_DSPL_ALL_CHANNELS, 1.0, 1.0, 1.0);
InvalidateRect(hwndMag, NULL, FALSE);
UpdateWindow(m_hwndMag);

Remarks:

This value can be used for magnify window display attribute corrections.