ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Window Functions > IG_GUI_window_attribute_get |
This function gets the current attribute settings of the GUI window.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_GUI_window_attribute_get( HWND hWnd, AT_MODE nAttributeID, LPVOID lpData ); |
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. |
Returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None
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); |
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. |