Adds and deletes annotations, and determines whether annotations exist.
#include <kvvapi.h> SendMessage(hWndVAPI, VAPIM_ANNOTATE, (WPARAM) wControl, (LPARAM) (TPVAPIAnnotation*) lpAnnotation );
| Argument | Description |
|---|---|
hWndVAPI
|
The handle of the VAPI window. |
wControl
|
|
lpAnnotation
|
A pointer to a TPVAPIAnnotation structure that defines the annotation. |
For KV_DEL_ANNOTATION, SendMessage() returns TRUE if successful; FALSE if the annotation did not exist.
For KV_ADD_ANNOTATION, SendMessage() returns 0 if successful; 1 if out of memory; 2 if the annotation could not be added because it would cause an overlap with an existing annotation; and 3 if the logical address was invalid.
For KV_ANNOTATION_EXISTS, SendMessage() returns TRUE if the annotation exists; FALSE otherwise.
The size of the bitmap is not relevant.
|
|