BUG: Win95 CreateEnhMetaFile Returns hDC with Characteristics (151918)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q151918 SYMPTOMS
In Windows 95, calling CreateEnhMetaFile and specifying a reference printer
DC (hdcRef) as the first parameter results in an hDC with characteristics
of the default printer, not of the hdcRef specified.
RESOLUTION
To work around this problem, obtain the current ENHMETAHEADER information
by calling GetEnhMetafileBits. Modify the appropriate members of the
structure to reflect the correct values, and then call SetEnhMetafileBits() to write the modified header information back.
STATUS
Microsoft has confirmed this to be a bug in the products listed at the
beginning of this article. We are researching this bug and will post new
information here in the Microsoft Knowledge Base as it becomes available.
Modification Type: | Minor | Last Reviewed: | 3/21/2005 |
---|
Keywords: | kbbug kbpending KB151918 |
---|
|