CView::OnBeginPrinting

This method, in its default form, does nothing. You can override this method to allocate any GDI resources, such as pens or fonts, needed specifically for printing. You can also use this method to perform initializations that depend on properties of the printer device context.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later
Complete documentation: Visual C++ documentation

Syntax

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