How To Draw on a Pre-Existing Enhanced Metafile (230675)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Windows NT Server
- Microsoft Windows NT Workstation
- Microsoft Windows 95
- Microsoft Windows 98
- Microsoft Windows 98 Second Edition
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- the operating system: Microsoft Windows XP 64-Bit Edition
This article was previously published under Q230675 SUMMARY
Sometimes it is desirable to draw on the surface of a pre-existing enhanced metafile. Unfortunately, the GetEnhMetaFile() API returns an HENHMETAFILE handle rather than a device context. This article shows how to create a device context that contains the contents of a disk-based EMF, and on which you can draw using normal GDI APIs.
REFERENCES
For additional information about how to read all kinds of metafiles, please see the following
article in the Microsoft Knowledge Base:
145999 SAMPLE: How to Create & Play Enhanced Metafiles in Win32
Modification Type: | Minor | Last Reviewed: | 4/4/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbFAQ kbGDI kbhowto kbMetafile KB230675 |
---|
|