AnnGetPredefinedMetafile method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnGetPredefinedMetafile(int nType, bool &bEnhanced, unsigned hMetaFile)

Delphi Syntax

Function AnnGetPredefinedMetafile(nType: L_INT; var bEnhanced: Boolean; hMetaFile: HMETAFILE): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Retrieves a copy of the specified predefined metafile.

The AnnGetPredefinedMetafile method is valid only for the following object types:

ANNOBJECT_FREEHANDHOTSPOT

ANNOBJECT_ENCRYPT

ANNOBJECT_HOTSPOT

ANNOBJECT_STAMP

Use the AnnGetPredefinedMetafile method to get the default metafiles for these objects. To reset a metafile to its original metafile, call the AnnSetPredefinedMetafile method and pass 0 to hMetafile. When the metafile handle is no longer needed, it must be freed using one of the Microsoft Windows API functions (DeleteMetaFile or DeleteEnhMetaFile).

See Also

Elements:

AnnSetMetafile method, AnnGetMetafile method, AnnSetPredefinedMetafile method, AnnGetEncryptOptions method, AnnSetEncryptOptions method, AnnEncryptApply method, AnnGetSecondaryMetafile method, AnnPredefinedBitmap property, AnnEncryptOptions property, AnnSetBitmap method, AnnSetSecondaryBitmap method, AnnGetSecondaryBitmap method, EncryptBitmap property

Topics:

Annotations (Document/Medical only): Object Bitmap

 

Using Annotation Object Bitmaps

 

Obtaining Annotation Object Information