ANNMOVE (Document/Medical only)

typedef struct tagANNMOVE
{
   L_UINT uStructSize;
   L_INT nState;
   POINT pt;
} ANNMOVE, L_FAR *pANNMOVE;

The ANNMOVE structure contains information about an annotation object when moving the object in automated mode.

Member

Description

uStructSize

Size of the ANNMOVE structure. Use sizeof(ANNMOVE).

nState

Value that indicates the state of the move. Possible values are:

 

Value

Meaning

 

STATE_BEGIN

[1]

 

STATE_UPDATE

[2]

 

STATE_END

[3]

pt

Current move location (in client coordinates)

Comments

The ANNMOVE structure is part of the union of the ANNCHANGEPARAM structure. For more information, see the documentation for ANNCHANGEPARAM.

An annotation object can be moved in automated mode by dragging the object with the mouse. Doing so causes a WM_LTANNEVENT message to be sent where wParam is ANNCHANGE_MOVE and lParam points to a structure of type ANNCHANGEPARAM. In this case, the union of ANNCHANGEPARAM is type ANNMOVE. This message is sent when one of the following events occurs:

image\sqrblit.gif Starting the move (with a mouse click): Two messages are sent, one before and one after the initial mouse click. The nState field is set to STATE_BEGIN. The pt field contains the location of the mouse click, in client coordinates.

image\sqrblit.gif Moving the object (by dragging the mouse): Pairs of messages (one before and one after) are sent for each mouse move. The nState field is set to STATE_UPDATE, and the pt field contains the location of the mouse.

image\sqrblit.gif Ending the move (by releasing the mouse): One pair of messages is sent (one before and one after) for the mouse up. The nState field is set to STATE_END, and the pt field contains the location of the mouse when released.

See Also

Topics:

WM_LTANNEVENT