This function is called by the library when the selection state of a mark is changed.
Copy Code
|
|
---|---|
typedef BOOL (ACCUAPI *LPFNIG_ART_SELECTNOTIFYFUNC)( HIGEAR hIGear, LPVOID lpPrivate, ART_MARK_INDEX hMarkIndex, BOOL fSelect ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of an image. |
lpPrivate | LPVOID | A far pointer to the private callback data. |
hMarkIndex | ART_MARK_INDEX | The index for the selected mark. |
fSelect | BOOL | A flag of type BOOL indicating the new selection state (selected/unselected). |
Returns FALSE for the mark's selection state to remain unchanged; returns TRUE to allow the mark's selection state to change.
All pixel formats supported by ImageGear for C and C++.
Copy Code
|
|
---|---|
BOOL ACCUAPI ARTSelectNotify( HIGEAR hIGear, LPVOID lpPrivate, ART_MARK_INDEX hMarkIndex, BOOL fSelect) { ART_MARK_ATTRIBUTES ma; ART_mark_query(hIGear, hMarkIndex, &ma); if (ma.dwType == ART_MARK_BUTTON && fSelect == TRUE) { /* prevent button marks from being selected */ return FALSE; } return TRUE; } |
If the callback function returns FALSE, the mark's selection state is not changed. It returns TRUE to allow the selection state to be changed.