|
Public Member Functions |
| LPRECT | GetDeviceSize () |
| | Calculates the device image size in pixels.
|
| BOOL | EndPage () |
| | Ends printing for current page.
|
| BOOL | StartPage () |
| | Starts printing on a particular page.
|
| BOOL | EndDoc () |
| | Ends printing for the current document.
|
| BOOL | StartDoc (LPCTSTR pName) |
| | Starts print job.
|
|
void | Destroy () |
| | Ends printing and resets print device information.
|
| BOOL | PageSetup (HWND hOwner) |
| | Displays the page setup dialog box to the user.
|
| BOOL | PrintDlg (HWND hOwner, LONG lCopies=1, LONG lFrom=1, LONG lTo=1, LONG lMin=0, LONG lMax=1) |
| | Displays the print dialog box to the user.
|
|
| CWinPrint () |
| | Default constructor.
|
|
virtual | ~CWinPrint () |
| | Destructor.
|
| HDC | GetPrintHdc () |
| | Returns the print HDC. Must call PrintDlg() before using.
|
| LPRECT | GetPrintRect () |
| | Returns the size of the print device context.
|
|
BOOL | SupportsBitBlt () |
| | Returns non-zero if the printer supports BitBlt().
|
|
PRINTDLG & | GetPrintDlgInfo () |
| | Returns reference to PRINTDLG structure.
|
|
PAGESETUPDLG & | GetPageSetupInfo () |
| | Returns reference to PAGESETUPDLG structure.
|
|
BOOL | IsDocumentPrinting () |
| | Returns non-zero if a document is being printed.
|
|
BOOL | IsPagePrinting () |
| | Returns non-zero if a page is being printed.
|
Static Public Member Functions |
| static BOOL CALLBACK | AbortProc (HDC hPrintDC, int nCode) |
| | Called by Windows when a print job is to be cancelled.
|
|
static void | CancelPrinting () |
| | Cancels any current print job.
|