|
|
1.1 ! root 1: The PRINTER sample does the following: ! 2: ! 3: - Shows how to print on NT, using both the CreateDC() ! 4: and the PrinterDlg() methods for acquiring a printer ! 5: HDC. The user is allowed to print different graphical ! 6: objects, as well as a complete device font set. An ! 7: "Abort" dialog is also implemented. ! 8: ! 9: - Provides complete device capabilities for all printers ! 10: & the display. ! 11: ! 12: - Provides information (levels 1 and 2) returned ! 13: by a call to EnumPrinters. ! 14: ! 15: - Shows how to enumerate fonts for a particular DC. ! 16: ! 17: - Illustrates differences between the various mappping ! 18: modes. ! 19: ! 20: - Demonstrates GDI functionality. ! 21: ! 22: ! 23: The main application window contains a menu and a toolbar. ! 24: The various submenus allow for: ! 25: ! 26: - Options ! 27: ! 28: Print- calls CreateDC to get a device context for the ! 29: selected printer in the toolbar combobox, and ! 30: then prints the current graphics options to this ! 31: DC. ! 32: ! 33: PrintDlg- calls PrintDlg to retrieve a device context ! 34: for a printer, then prints out current graphics ! 35: options to this DC. ! 36: ! 37: GetDeviceCaps- retrieves device capabilities for device ! 38: currently selected in toolbar combobox, ! 39: and displays them in a dialog box. ! 40: ! 41: EnumPrinters- retrieves level 1 & 2 information returned ! 42: by EnumPrinters and displays this information ! 43: in a dialog box. ! 44: ! 45: GetPrinterDriver- returns level 1 & 2 information returned by ! 46: GetPrinterDriver (for currently selected printer) ! 47: and displays this information in a dialog box. ! 48: ! 49: EnumPrinterDrivers- returns level 1 & 2 information returned by ! 50: EnumPrinterDrivers and displays this information ! 51: in a dialog box. ! 52: ! 53: Refresh- refreshes the contents for the toolbar combobox ! 54: (changes made in Print Manager will be relfected ! 55: by this). ! 56: ! 57: About- application information dialog ! 58: ! 59: - Mapping Modes user selects between different mapping modes ! 60: ! 61: - Graphics user selects different primitives to display ! 62: ! 63: - Pen user can configure size, color, and style of ! 64: drawing pen ! 65: ! 66: - Brush user can configure size, color, and style of ! 67: drawing brush ! 68: ! 69: - Text color... user can configure color used to draw fonts
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.