CView::OnPrint

This method is called by the framework to print or preview a page of the document. For each page being printed, the framework calls this method immediately after calling the OnPrepareDC method.

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 OnPrint( CDC* pDC, CPrintInfo* pInfo );

CView::OnPreparePrinting

This method is called by the framework when the frame window containing the view is activated or deactivated.

At a Glance

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

Syntax

virtual void OnActivateFrame( UINT nState, CFrameWnd* pFrameWnd );

See Also

CWnd::OnActivate, CFormView