AnnSetPredefinedMetafile method (Annotation Control)
Builder Syntax |
|
Delphi Syntax |
Function AnnSetPredefinedMetafile(nType: L_INT; hMetaFile: HMETAFILE): L_INT |
Overview |
Refer to Implementing Annotations. |
Remarks
(Document/Medical only) Changes a predefined metafile.
This method affects the Stamp, Rubber Stamp, Hotspot, and Freehand Hotspot objects created by the automation object. For example, if you replace the ANNMETAFILE_APPROVED default metafile with another metafile, then objects created by the automation mode when the ANNTOOL_STAMP_APPROVED tool is set will look like the new metafile.
A predefined metafile can be reset to its original metafile by passing 0 for hMetafile. For example, to reset the Hotspot and Freehand Hotspot predefined metafiles to their original values, use the following code:
AnnSetPredefinedMetafile(ANNMETAFILE_HOTSPOT, 0);
Use the AnnGetPredefinedMetafile method to get the default metafiles for these objects. 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