共用方式為


CPrintInfo::m_strPageDesc

Contains a format string used to display the page numbers during print preview; this string consists of two substrings, one for single-page display and one for double-page display, each terminated by a '\n' character.

Remarks

The framework uses "Page %u\nPages %u-%u\n" as the default value. If you want a different format for the page numbers, specify a format string in your override of CView::OnPreparePrinting. The m_strPageDesc member is a public variable of type CString.

Requirements

Header: afxext.h

See Also

Concepts

CPrintInfo Structure

CPrintInfo Members

Hierarchy Chart

CView::OnPreparePrinting