BUG: CreateDC Does Not Thunk DEVMODE Structure CorrectlyLast reviewed: September 29, 1995Article ID: Q128701 |
The information in this article applies to:
SYMPTOMSUnder Win32s version 1.2 and 1.25, when a Win32-based application displays a printer setup dialog box that calls PrintDlg with the PD_PRINTSETUP flag and the printing orientation is changed from Portrait to Landscape, the DEVMODE structure obtained from the PrintDlg call to CreateDC is passed and creates a printer DC. If the printer driver is a postscript driver, anything printed using this DC is still in Portrait mode.
CAUSEThe thunking layer for CreateDC does not thunk the DEVMODE structure for the postcript driver correctly.
RESOLUTIONTo work around the problem, avoid calling CreateDC with a DEVMODE structure. Instead, directly create the pinter DC by calling PrintDlg with the PD_RETURNDC flag. Then change the printing orientation from within the print dialog box.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are reasearching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional reference words: 1.20 1.25 3.10 3.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |