Поделиться через


CEditView::SetPrinterFont

Call SetPrinterFont to set the printer font to the font specified by pFont.

void SetPrinterFont(
   CFont* pFont 
);

Параметры

  • pFont
    A pointer to an object of type CFont. If NULL, the font used for printing is based on the display font.

Заметки

If you want your view to always use a particular font for printing, include a call to SetPrinterFont in your class's OnPreparePrinting function. This virtual function is called before printing occurs, so the font change takes place before the view's contents are printed.

Smart Device Developer Notes

  • This method is not supported in smart device projects

Требования

Header: afxext.h

См. также

Основные понятия

CEditView Class

CEditView Members

Hierarchy Chart

CWnd::SetFont

CFont Class

CView::OnPreparePrinting