This function is used to define the behavior of a rubber rectangle during selection.
|
Copy Code
|
|
|---|---|
AT_ERRCOUNT ACCUAPI IG_GUI_select_attribute_set(
HWND hwndSelect,
AT_MODE nAttributeID,
const LPVOID lpData
);
|
|
| 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. |
Returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
MFC PDF
|
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)); |
|
If lpData = FALSE, then the rectangle corresponds exactly to the mouse pointer. Otherwise, the current aspect is taken into account.