共用方式為


CEditView::GetPrinterFont

Call GetPrinterFont to get a pointer to a CFont object that describes the current printer font.

CFont* GetPrinterFont( ) const;

Return Value

A pointer to a CFont object that specifies the current printer font; NULL if the printer font has not been set. The pointer may be temporary and should not be stored for later use.

Remarks

If the printer font has not been set, the default printing behavior of the CEditView class is to print using the same font used for display.

Use this function to determine the current printer font. If it is not the desired printer font, use CEditView::SetPrinterFont to change it.

Smart Device Developer Notes

  • This method is not supported in smart device projects

Requirements

Header: afxext.h

See Also

Concepts

CEditView Class

CEditView Members

Hierarchy Chart

CEditView::SetPrinterFont