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