Annotation of q_a/samples/printer/readme, revision 1.1.1.1

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.
                      7: 
                      8:   - Provides complete device capabilities for all printers
                      9:     & the display.
                     10: 
                     11:   - Provides most information (levels 1 and 2) returned
                     12:     by a call to EnumPrinters.
                     13: 
                     14:   - Shows how to enumerate fonts for a particular DC.
                     15: 
                     16:   - Illustrates differences between the various mappping
                     17:     modes.
                     18: 
                     19:   - Demonstrates GDI functionality.
                     20: 
                     21: 
                     22: The main application window contains both a standard menu
                     23: as well as a toolbar. The standard menu has a "Mapping Modes"
                     24: submenu which switches the current mapping modes for both the
                     25: app window and printed documents. The "Graphics" submenu
                     26: allows for selecting whether to display various graphical
                     27: objects or enumerating the fonts. Again, all settings affect
                     28: both the drawing of the client area and printed documents.
                     29: 
                     30: The toolbar contains 5 buttons and a dropdown combobox.
                     31: Starting from the left:
                     32: 
                     33:   - The PRTDLG button causes the PrintDlg() API to be called,
                     34:     which in turn brings up a dialog box allowing user to
                     35:     set printing options and print a document.
                     36: 
                     37:   - The PRINT button causes a DC to be created for whatever
                     38:     printer is listed in the edit field of the combobox. If
                     39:     "Display" is listed then a message box comes up prompting
                     40:     the user to select a printer.
                     41: 
                     42:   - The ENUM button ("#") causes the EnumPrinters() API to
                     43:     be called to request both level 1 and 2 info for all
                     44:     LOCAL and FAVORITE printers. This information is then
                     45:     entered in a dialog box and displayed to the user in
                     46:     readable form.
                     47: 
                     48:   - The DEVCAP button ("?") causes PRINTER to query all the
                     49:     capabilities for the device listed in the edit field, and
                     50:     display them in readable form to the user.
                     51: 
                     52:   - The DELTA button causes the combobox to be updated with
                     53:     the most current Print Manager configuration. (E.g. if
                     54:     the user starts PRINTER and then creates another printer
                     55:     in Print Manager, then they should push the DELTA button
                     56:     so the new printer will appear in the combobox.)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.