How to customize the common print dialog box in an MFC application (132909)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- 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 Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
This article was previously published under Q132909 SUMMARY
This article explains how to modify and use the standard print dialog box in a typical MFC application. Customizing the print dialog box involves modifying the Microsoft Windows default common print dialog box template. When you customize the common print dialog box, you can add new controls and remove existing controls.
REFERENCES
For more information, see the PRINTDLG structure in the Windows SDK
documentation and the "OnPreparePrinting" and "CPrintDialog" topics in the Foundation Class documentation.
Modification Type: | Major | Last Reviewed: | 9/1/2005 |
---|
Keywords: | kbcode kbFAQ kbhowto kbprint kbProgramming KB132909 kbAudDeveloper |
---|
|