BUG: Win95 CreateEnhMetaFile Returns hDC with Characteristics
Article ID: 151918
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
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.
Additional query words: 4.00
Keywords: kbbug kbpending KB151918