Printer_driver_use

所属分类:打印编程
开发工具:Visual C++
文件大小:235KB
下载次数:30
上传日期:2012-12-16 23:34:28
上 传 者rongfeel
说明:  打印机驱动程序调用以及UI、DC等设计的应用;
(It s about how use printer driver to print some documents, how using printer driver s UI and DC.)

文件列表:
creatdc (0, 2005-06-16)
creatdc\Debug (0, 2005-06-16)
creatdc\COMMON.H (2759, 1997-10-05)
creatdc\desktop.ini (271, 2002-08-01)
creatdc\ENUMPRT.C (20643, 1997-10-05)
creatdc\ENUMPRT.H (12859, 1997-10-05)
creatdc\enumprt.obj (55080, 2001-04-15)
creatdc\GETCAPS.C (8208, 1997-10-05)
creatdc\GETCAPS.H (8617, 1997-10-05)
creatdc\getcaps.obj (38128, 2001-04-15)
creatdc\GETPDRIV.C (5529, 1997-10-05)
creatdc\GETPDRIV.H (2495, 1997-10-05)
creatdc\getpdriv.obj (31548, 2001-04-15)
creatdc\MAKEFILE (397, 1996-04-09)
creatdc\PAINT.C (18927, 1997-10-05)
creatdc\PAINT.H (3102, 1997-10-05)
creatdc\paint.obj (41393, 2001-04-15)
creatdc\PRINTER.BMP (19994, 1993-02-03)
creatdc\Printer.c (34838, 2001-04-16)
creatdc\PRINTER.DEF (556, 1993-02-03)
creatdc\printer.dsp (3527, 1998-03-30)
creatdc\printer.dsw (537, 2001-04-15)
creatdc\printer.exe (225052, 2001-04-16)
creatdc\PRINTER.H (8925, 1997-10-05)
creatdc\PRINTER.ICO (766, 1993-02-03)
creatdc\printer.ncb (115712, 2001-06-01)
creatdc\printer.obj (56895, 2001-04-16)
creatdc\printer.opt (51712, 2001-06-01)
creatdc\printer.plg (357, 2001-04-16)
creatdc\PRINTER.RC (15384, 1997-10-05)
creatdc\printer.res (25356, 1998-03-30)
creatdc\STRINGS.H (817, 1996-01-03)

Printing SUMMARY ======= The PRINTER sample does the following: - 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. - 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 between the various mapping modes. - Demonstrates GDI features. MORE INFORMATION ================ The main application window contains a menu and a toolbar. The submenus are: Print Calls CreateDC to get a device context for the selected printer in the toolbar combo box, and then prints the current graphics options to this DC. PrintDlg Calls PrintDlg to retrieve a device context for a printer, then prints out current graphics options to this DC. GetDeviceCaps Retrieves device capabilities for devices currently selected in the toolbar combo box, and displays them in a dialog box. EnumPrinters Retrieves level 1 and 2 information returned by EnumPrinters and displays this information in a dialog box. GetPrinterDriver Returns level 1 and 2 information returned by GetPrinterDriver (for currently selected printer) and displays this information in a dialog box. EnumPrinterDrivers Returns level 1 and 2 information returned by EnumPrinterDrivers and displays this information in a dialog box. Refresh Refreshes the contents for the toolbar combo box. About Application information dialog Mapping Modes User selects between different mapping modes. Graphics User selects different primitives to display. Pen User can configure size, color, and style of drawing pen. Brush User can configure size, color, and style of drawing brush. Text color User can configure color used to draw fonts.

近期下载者

相关文件


收藏者