<< Return to Main Index

< Return to Class Index

CGXGridCore::OnGridBeginPrinting

virtual void OnGridBeginPrinting(CDC* pDC, CPrintInfo* pInfo);

pDC

Points to the printer device context.

pInfo

Points to a CPrintInfo structure that describes the current print job.

Remarks

Called by the MFC framework at the beginning of a print or print preview job, after CView::OnPreparePrinting has been called.

The default implementation of this function calculates page breaks and the number of pages needed to print the document. The printing rectangle where the grid should be drawn is calculated with OnAdjustPrintRectangle.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementPrinting method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXGridCore::OnGridPrint CGXGridCore::OnGridEndPrinting CGXGridCore::OnAdjustPrintRectangle CGXGridCore::OnPrintHeaderAndFooter

CGXGridCore

Class Overview | Class Members