ImageGear Professional > API Reference Guide > ART Component API Reference > ART Component Callback Functions Reference > LPFNIG_ART_DELETENOTIFYFUNC |
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 Professional.
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.
In order to use this callback, it must first be registered with ART using the function ART_callback_register(). |