The information in this article applies to:
SYMPTOMS
An application marked as 3.1 will have its window origin and viewport
origin reset on Windows 95 when StartPage() is called and the device
context (DC) is in the MM_TEXT mapping mode. CAUSE
This bug occurs when Enhanced metafiles (EMF) are used to print in Windows
95.
RESOLUTION
The best way to work around this behavior is to call StartPage() before changing any DC attributes. Doing this guarantees that the DC attributes do not get reset regardless of the operating system or whether the application is marked 3.1 or 4.0. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION
When an application prints, Windows 95 directs all GDI output calls for a
page to an ENHANCED metafile. When EndPage is called, GDI steps through the
bands on the page and plays the metafile into every band. In Windows 95,
GDI fails to record the origin and extent information into the metafile
unless the mapping mode is set to something other than MM_TEXT.
Q125696 StartPage/EndPage Resets Printer DC Attributes in Windows 95 Additional query words: 3.10 4.00 SetWindowOrg SetViewportOrg
Keywords : kbSDKWin32 kbWinOS310 kbWinOS95 kbSDKWin16 |
Last Reviewed: June 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |