This function is called whenever a mark is deleted.
Declaration:
Copy Code | |
---|---|
typedef BOOL (ACCUAPI *LPFNIG_ART_DELETENOTIFYFUNC)( HIGEAR hIGear, LPVOID lpPrivate, ART_MARK_INDEX hMarkIndex ); |
Arguments:
hIGear | HIGEAR handle to the image. |
lpPrivate | A far pointer to the private callback data. |
hMarkIndex | The index of the to-be-deleted mark. |
Return Value:
If the callback function returns FALSE, the mark is not deleted. It should return TRUE to allow the mark to be deleted.
Supported Raster Image Formats:
All pixel formats supported by ImageGear Professional.
Sample:
None
Example:
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; } |
Remarks:
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(). |