PMPrinterDC: Difference between revisions
Appearance
Created page with "==Description== Printing is very easy with these supplied classes: a sample printout can be produced with as little code as: PMPrinterDC printer(hab); // create an instance ..." |
No edit summary |
||
Line 2: | Line 2: | ||
Printing is very easy with these supplied classes: a sample printout can be produced with as little code as: | Printing is very easy with these supplied classes: a sample printout can be produced with as little code as: | ||
<PRE> | |||
PMPrinterDC printer(hab); // create an instance of a PMPrinterDC | PMPrinterDC printer(hab); // create an instance of a PMPrinterDC | ||
printer.open(); // open the DC | printer.open(); // open the DC | ||
Line 14: | Line 15: | ||
delete ptr; | delete ptr; | ||
printer.endDoc("Test Document"); | printer.endDoc("Test Document"); | ||
</PRE> | |||
[[Category:The OS/2 API Project]] |
Revision as of 03:07, 3 December 2015
Description
Printing is very easy with these supplied classes: a sample printout can be produced with as little code as:
PMPrinterDC printer(hab); // create an instance of a PMPrinterDC printer.open(); // open the DC printer.startDoc("Test Document"); PMPresSpace *ptr=new PMPresSpace(&printer, 1000, 1000, PU_ARBITRARY|PU_LOENGLISH|GPIF_DEFAULT|GPIT_NORMAL|GPIA_ASSOC, hab); // [draw on ptr] delete ptr; printer.endDoc("Test Document");