Q&A

Q1:Can the Print Preview dialog be used as an MDI child window?
A1: PrintPreviewDialog is derived from the Form class, and as you know, any form has the potential of being an MDI child window. Another option is to use PrintPreviewControl, which is the print preview portion of the Print Preview dialog. This class can be used directly to provide whatever interface you desire.
Q2:What part is GDI+ and what part is the .NET Framework in this example?
A2: The only parts of the example that involve GDI+ are the use of the Graphics object, the call to the DrawString() method, and the font. Everything else is part of the .NET Framework.

Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.