ImageGear Professional DLL for Windows
IG_GUI_window_attribute_get

This function gets the current attribute settings of the GUI window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_window_attribute_get(
        HWND hWnd, 
        AT_MODE nAttributeID, 
        LPVOID lpData
);

Arguments:

Name Type Description
hWnd HWND Handle of the window in which the image is displayed.
nAttributeID AT_MODE A variable of type AT_MODE, such as IG_GUI_WINDOW_PAINT.
lpData LPVOID A VOID pointer to a variable of the type required by the nAttributeID parameter. This sets the value for the attribute defined by nAttributeID.

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
HWND hWndImage;
AT_ERRCOUNT nErrcount;
AT_MODE         nAttribute;
BOOL bPaintFlag;
bPaintFlag = TRUE;      /* enable painting */
/* Get the current attribute settings of the GUI window */
nErrcount = IG_GUI_window_attribute_get(hWndImage, IG_GUI_WINDOW_PAINT, &bPaintFlag);

Remarks:

If the argument nAttributeID is set to IG_GUI_WINDOW_PAINT and lpData is set to TRUE, the GUI window is painted.

There is currently just one attribute, IG_GUI_WINDOW_PAINT, but this may be expanded in the future.

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback