ImageGear for C and C++ on Windows v19.1 - Updated
IG_GUI_select_attribute_set
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Mouse Selection Functions > IG_GUI_select_attribute_set

This function is used to define the behavior of a rubber rectangle during selection.

Declaration:

 
Copy Code
AT_ERRCOUNT  ACCUAPI IG_GUI_select_attribute_set( 
        HWND hwndSelect, 
        AT_MODE nAttributeID,
        const LPVOID lpData
);

Arguments:

Name Type Description
hwndSelect HWND Handle to select a window.
NAttributeID AT_MODE ID of the attribute to set. The only possible value is IG_GUI_SELECT_ASPECT.
lpData const LPVOID Data value to be set. Possible values are TRUE or FALSE.

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:

MFC PDF

Example:

 
Copy Code
IG_GUI_select_track_mouse(hIGear, dwGroupID, hWnd, x, y, MySelectRect, NULL);
IG_GUI_select_attribute_set(hWnd, IG_GUI_SELECT_ASPECT, (LPVOID)(FALSE));

Remarks:

If lpData = FALSE, then the rectangle corresponds exactly to the mouse pointer. Otherwise, the current aspect is taken into account.