#include “BiAnno.h”
long CALLBACK AnnoObjSelectNext(INT_PTR pAnno)
Description
Selects the next object in the inner object list. If there is no object selected, the function will select the first object in the list automatically, so you do not need to pain with “SelectFirst” type functions (there is no AnnoObjSelectFirst function in Annotation SDK). The starter object can also be selected with the AnnoObjSelect function, or with the mouse, and the enumeration will be continued from that object.
Parameters
|
INT_PTR |
pAnno |
Annotation handle |
Return value
TRUE if the next object is found. FALSE if the last object in the list was selected previously, and the enumeration is finished. In this case the next call to this function will select the first object in the list again.If there is no object in the list the function will always return FALSE.
Programming Notes
Use this function to enumerate all of the annotation objects on the active page. The layers of the active page are ignored in the enumeration, the function will enumerate all objects independently from layer number. However, you can check the layer number of the selected objects to decide working on them or not. You can use the AnnoObjGetLayer function for this purpose.
IMPORTANT: all of the functions started with AnnoObj words work on the selected object only! You can use AnnoObjSelectNext function before you call any of these functions.
Code Example
None