FIX: Print Preview Doesn't Honor Font Width Setting (173249)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
This article was previously published under Q173249 SYMPTOMS
MFC has a Print Preview feature that shows you on the screen what your
document should look like when it is printed. However, if you use a font
with a non-zero width in your OnDraw routine to make the text appear
"condensed" or "squished", then the preview MFC shows you on the screen
does not appear as the document will look when it is actually printed.
CAUSE
A bug in the MFC CPreviewDC::MirrorFont forces a zero value for the font
width which causes a normal-looking font to be used in the Print Preview.
RESOLUTION
Insert an exact copy of the MFC function into one of your project source
files and make the needed corrections. A linker option override will force
it to use your corrected version of the function and ignore MFC's function.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was corrected in Visual C++
version 6.0.
Modification Type: | Major | Last Reviewed: | 12/10/2003 |
---|
Keywords: | kbBug kbDocView kbfix kbNoUpdate KbUIDesign kbVC600fix KB173249 kbAudDeveloper |
---|
|