This function is called whenever a mark is deleted.
Copy Code
|
|
---|---|
typedef BOOL (ACCUAPI* LPFNIG_ART_DELETENOTIFYFUNC)( HIGEAR hIGear, LPVOID lpPrivate, ART_MARK_INDEX hMarkIndex ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle to the image. |
lpPrivate | LPVOID | A far pointer to the private callback data. |
hMarkIndex | ART_MARK_INDEX | The index of the to-be-deleted mark. |
If the callback function returns FALSE, the mark is not deleted. It should return TRUE to allow the mark to be deleted.
All pixel formats supported by ImageGear for C and C++.
None
Copy Code
|
|
---|---|
BOOL ACCUAPI MyDeleteMarkFunc( HIGEAR hIGear, LPVOID lpPrivate, ART_MARK_INDEX hMarkIndex) { /* before deleting the mark, copy it to the clipboard */ ART_edit_copy(hIGear, &hMarkIndex, 1); return TRUE; } |
If the callback function returns FALSE, the mark is not deleted. It should return TRUE to allow the mark to be deleted.