Declared in <XPrinter.h>
This is a printer interface. And no, we can only have one of these at a time.
Construction/Destruction
Page Settings
XGPrinter::PageSize
XGPrinter::PrintSize
XGPrinter::Resolution
XGPrinter::SetResolution
Dialogs
Printer Core
XGPrinter::EndJob
XGPrinter::EndPage
XGPrinter::GetCancelState
XGPrinter::StartJob
XGPrinter::StartPage
Construction/Destruction
Usage: XGPrinter::XGPrinter()
Allocate memory and fill in reasonable defaults for the THPrint handle
Usage: XGPrinter::~XGPrinter()
Release memory
Page Settings
Usage: Rect XGPrinter::PageSize()
Get the size of this page
Usage: Rect XGPrinter::PrintSize()
Get the printing area of this page
Usage: Point XGPrinter::Resolution()
Get the horizontal, vertical resolution of this page
Usage: void XGPrinter::SetResolution(short flags)
Set various resolutions for this thing
Dialogs
Usage: bool XGPrinter::PageSetup()
Run the page setup dialog box. Return -1 if there was a problem
Usage: bool XGPrinter::PrintJob(short*first,short*last)
Run the print job dialog box. This returns the first page and the last page to print
Printer Core
Usage: void XGPrinter::EndJob()
End the printing job. If this job needs to be spooled, spool it
Usage: void XGPrinter::EndPage()
End printing in a page
Usage: bool XGPrinter::GetCancelState()
Get the current state of the cancel button. If the user hit the cancel button, this returns true.
Usage: bool XGPrinter::StartJob(char*doc)
Start this printing job. This opens a window with a cancel message
Usage: bool XGPrinter::StartPage()
Start printing in a page