iState

Flag that indicates the state of the process of modifying the annotation object.

Value

Meaning

ANNDEFINE_BEGINSET

[0] This is the first point to define a new object.

ANNDEFINE_BEGINMOVE

[1] This is the point from which to move the object.

ANNDEFINE_BEGINROTATE

[2] This is the starting point for calculating the angle of rotation.

ANNDEFINE_BEGINRESIZE

[3] This is the starting point for calculating how to resize the object.

ANNDEFINE_BEGINSELECT

[4] This is the first corner of the rectangle used to select objects.

ANNDEFINE_APPEND

[5] This is the next point when defining an object that requires more than two points.

ANNDEFINE_UPDATE

[6] This is the current mouse position during creation of the object. Use this on a mouse move event to reflect the current shape of the object.

ANNDEFINE_END

[7] This is the last point.

ANNDEFINE_BEGINMOVESELECTED

[8] This is the point from which to move all selected objects.

ANNDEFINE_BEGINROTATESELECTED

[9] This is the starting point for calculating the angle of rotation for all selected objects.

ANNDEFINE_BEGINRESIZESELECTED

[10] This is the starting point for calculating how to resize all selected objects.

ANN_DEFINE_SETANCHORPOINT

[13] This is an anchor point. Use this value when rotating an annotation object around a point other than its center. When doing this, call AnnDefine with this flag prior to calling AnnDefine with the ANN_DEFINE_BEGINROTATE flag.

ANN_DEFINE_BEGINMOVEPOINT

[11] This is a starting point, used when moving one point on an annotation object.

The behavior depends on the annotation object being manipulated.

This can be used to move a single point on any of the following annotation objects:

ANN_OBJECT_LINE
ANN_OBJECT_POLYLINE
ANN_OBJECT_POLYGON
ANN_OBJECT_POINTER
ANN_OBJECT_FREEHAND
ANN_OBJECT_FREEHANDHOTSPOT
ANN_OBJECT_RULER
ANN_OBJECT_CROSSPRODUCT
ANN_OBJECT_PROTRACTOR
ANN_OBJECT_CURVE
ANN_OBJECT_CURVECLOSED

You can use ANN_DEFINE_BEGINMOVEPOINT to perform a simultaneous rotate and resize for the following objects: When doing this, call AnnDefine with the ANN_DEFINE_SETANCHORPOINT flag prior to calling AnnDefine with the ANN_DEFINE_BEGINMOVEPOINT flag.

(Note that you must set an anchor point prior to using ANN_DEFINE_BEGINMOVEPOINT)

ANN_OBJECT_RECT
ANN_OBJECT_ELLIPSE
ANN_OBJECT_HILITE
ANN_OBJECT_REDACT
ANN_OBJECT_TEXT
ANN_OBJECT_NOTE
ANN_OBJECT_STAMP
ANN_OBJECT_HOTSPOT