home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / printer / readme.txt < prev    next >
Text File  |  1996-01-17  |  2KB  |  82 lines

  1. Printing
  2.  
  3.  
  4. SUMMARY
  5. =======
  6.  
  7. The PRINTER sample does the following:
  8.  
  9.   - Shows how to print using both the CreateDC and the PrinterDlg methods 
  10.     for acquiring a printer HDC. The user is allowed to print different 
  11.     graphical objects, as well as a complete device font set. An "Abort" 
  12.     dialog box is also implemented.
  13.   - Provides complete device capabilities for all printers and the display.
  14.   - Provides information (levels 1 and 2) returned by a call to 
  15.     EnumPrinters.
  16.   - Shows how to enumerate fonts for a particular DC.
  17.   - Illustrates differences between the various mapping modes.
  18.   - Demonstrates GDI features.
  19.  
  20. MORE INFORMATION
  21. ================
  22.  
  23. The main application window contains a menu and a toolbar. The submenus are:
  24.  
  25. Print
  26.  
  27. Calls CreateDC to get a device context for the selected printer in the 
  28. toolbar combo box, and then prints the current graphics options to this DC.
  29.  
  30. PrintDlg
  31.  
  32. Calls PrintDlg to retrieve a device context for a printer, then prints out 
  33. current graphics options to this DC.
  34.  
  35. GetDeviceCaps
  36.  
  37. Retrieves device capabilities for devices currently selected in the toolbar 
  38. combo box, and displays them in a dialog box.
  39.  
  40. EnumPrinters
  41.  
  42. Retrieves level 1 and 2 information returned by EnumPrinters and displays 
  43. this information in a dialog box.
  44.  
  45. GetPrinterDriver
  46.  
  47. Returns level 1 and 2 information returned by GetPrinterDriver (for 
  48. currently selected printer) and displays this information in a dialog box.
  49.  
  50. EnumPrinterDrivers
  51.  
  52. Returns level 1 and 2 information returned by EnumPrinterDrivers and 
  53. displays this information in a dialog box.
  54.  
  55. Refresh
  56.  
  57. Refreshes the contents for the toolbar combo box.
  58.  
  59. About
  60.  
  61. Application information dialog
  62.  
  63. Mapping Modes
  64.  
  65. User selects between different mapping modes.
  66.  
  67. Graphics
  68.  
  69. User selects different primitives to display.
  70.  
  71. Pen
  72.  
  73. User can configure size, color, and style of drawing pen.
  74.  
  75. Brush
  76.  
  77. User can configure size, color, and style of drawing brush.
  78.  
  79. Text color
  80.  
  81. User can configure color used to draw fonts.
  82.