Click to open or copy the files for the Printer sample.
The Printer sample shows how to print using both the CreateDC and the PrinterDlg methods for acquiring a printer HDC. The user is allowed to print different graphical objects, as well as a complete device font set. An "Abort" dialog box is also implemented.
The Printer sample also does the following:
Provides complete device capabilities for all printers and the display.
Provides information (levels 1 and 2) returned by a call to EnumPrinters.
Shows how to enumerate fonts for a particular DC.
Illustrates differences among the various mapping modes.