CView::OnEndPrintPreview

virtualvoidOnEndPrintPreview(CDC*pDC,CPrintInfo*pInfo,POINTpoint**,CPreviewView*pView);**

Parameters

pDC

Points to the printer device context.

pInfo

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

point

Specifies the point on the page that was last displayed in preview mode.

pView

Points to the view object used for previewing.

Remarks

Called by the framework when the user exits print preview mode. The default implementation of this function calls the OnEndPrinting member function and restores the main frame window to the state it was in before print preview began. Override this function to perform special processing when preview mode is terminated. For example, if you want to maintain the user’s position in the document when switching from preview mode to normal display mode, you can scroll to the position described by the point parameter and the m_nCurPage member of the CPrintInfo structure that the pInfo parameter points to.

Always call the base class version of OnEndPrintPreview from your override, typically at the end of the function.

CView OverviewClass MembersHierarchy Chart

See Also   CPrintInfo, CView::OnEndPrinting