SRGScrollView::OnBeginPrinting

void SRGScrollView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)

Begin the printing process

Defined in: SRGScrollView.cpp

Return Value

void

Parameters

pDC

Pointer to a device context

pInfo

Pointer to a print info structure

Remarks

This routine performs simple pagination. The page size may have been chosen from a list by the page-setup dialog. It also arranges for the graph page to be positioned in the available area.
Note that the SRGraph object itself manages pagination details, albeit in a simple form. The view class simply passes along the details.

Developer Notes

Large pages which are aligned in the page can take longer to print because the SRGraph object may not be able to draw directly to the provided print DC. When this happens a compatible DC of similar proportions is created, and the drawing is performed there before it is copied to the print DC.