Jump to content

PMPrinterDC: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
Line 17: Line 17:
</PRE>
</PRE>


[[Category:The OS/2 API Project]]
[[Category:PM++]]

Revision as of 23:42, 26 February 2017

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");