File:  [WindowsNT SDKs] / q_a / samples / printer / readme
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:19 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

The PRINTER sample does the following:

  - Shows how to print on NT, 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.

  - Provides complete device capabilities for all printers
    & the display.

  - Provides most information (levels 1 and 2) returned
    by a call to EnumPrinters.

  - Shows how to enumerate fonts for a particular DC.

  - Illustrates differences between the various mappping
    modes.

  - Demonstrates GDI functionality.


The main application window contains both a standard menu
as well as a toolbar. The standard menu has a "Mapping Modes"
submenu which switches the current mapping modes for both the
app window and printed documents. The "Graphics" submenu
allows for selecting whether to display various graphical
objects or enumerating the fonts. Again, all settings affect
both the drawing of the client area and printed documents.

The toolbar contains 5 buttons and a dropdown combobox.
Starting from the left:

  - The PRTDLG button causes the PrintDlg() API to be called,
    which in turn brings up a dialog box allowing user to
    set printing options and print a document.

  - The PRINT button causes a DC to be created for whatever
    printer is listed in the edit field of the combobox. If
    "Display" is listed then a message box comes up prompting
    the user to select a printer.

  - The ENUM button ("#") causes the EnumPrinters() API to
    be called to request both level 1 and 2 info for all
    LOCAL and FAVORITE printers. This information is then
    entered in a dialog box and displayed to the user in
    readable form.

  - The DEVCAP button ("?") causes PRINTER to query all the
    capabilities for the device listed in the edit field, and
    display them in readable form to the user.

  - The DELTA button causes the combobox to be updated with
    the most current Print Manager configuration. (E.g. if
    the user starts PRINTER and then creates another printer
    in Print Manager, then they should push the DELTA button
    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.