#include “BiAnno.h”
long CALLBACK CreateAnnoObj(INT_PTR pAnno, int type)
Description
Creates an annotation in the object referenced by the handle. The created object will automatically be selected.
Parameters
|
INT_PTR |
pAnno |
Annotation handle |
|
int |
type |
Object type, one of the following possible types:
A_WOUT, /* whiteout or redacted */ A_NOTE, /* note */ A_STAMP, /* stamp */ A_HIGHLIGHT, /* highlight */ A_LINE, /* line */ A_RECT, /* rectangle */ A_CIRCLE, /* circle */ A_ROUNDEDRECT, /* rounded rectangle */ A_TEXT, /* text */ A_FREEHAND, /* freehand */ A_META, /* metafile or timestamp */ A_RUBBERSTAMP /* rubber stamp */ A_VOICE /* voice */ A_COMMENT /* comment */ A_CHECKBOX /* checkbox*/ A_TEXTBOX /* single-line textbox */ A_MULTILINETEXTBOX /* multi-line textbox */ A_TOOLTIP /* tooltip control */ A_SIGNATURE /* signature control */ A_DATETIME /* datetime control */ A_HYPERLINK /* hyperlink */ A_BARCODE /* barcode control – to use the barcode control type, an external barcode library (e.g.: the Black Ice Barcode SDK) must be used. */ A_SHAPE /* Shape object – the T_SHAPE_ARROW_RIGHT is the default value, please use the AnnoObjSetShapeType to change it */ |
Return value
0 on success, ANNO_UNDEF otherwise
Programming Notes
The object types are defined in an enumeration in BiAnno.h. See Object creation process for more details on creating specific annotations.
Code Example
None