AnnSetSecondaryBitmap method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short AnnSetSecondaryBitmap(OLE_HANDLE hObject, OLE_HANDLE hBitmap, BOOL bSelected);

Overview:  Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the secondary bitmap used by the specified annotation object.

Only PushPin objects use a secondary bitmap.

A pushpin object has a primary bitmap, (manipulated using AnnSetBitmap method/AnnGetBitmap method) when the text is shown, and a secondary bitmap, changed using AnnSetSecondaryBitmap. The primary bitmap is shown with the note text. The secondary bitmap is shown by itself when the note is minimized.

In design mode, the PushPin object shows the text and displays the primary bitmap. In run mode, the object shows/hides the text when clicked. The pushpin object has the active mode property. When the mode is ANNACTIVE_ENABLED, the text is shown and the primary bitmap is painted in the top-left corner of the note.

When the mode is ANNACTIVE_DISABLED, the text is hidden and the secondary bitmap is displayed.

See Also

Elements:  AnnGetSecondaryBitmap method

Topics:  Annotations (Document/Medical only): Object Bitmap