Partager via


CDialog::OnSetFont

Specifies the font a dialog-box control will use when drawing text.

Virtual void OnSetFont(
   CFont* pFont 
);

Parameters

  • [in] pFont
    Specifies a pointer to the font that will be used as the default font for all controls in this dialog box.

Remarks

The dialog box will use the specified font as the default for all its controls.

The dialog editor typically sets the dialog-box font as part of the dialog-box template resource.

Notes

You cannot override this method when you use a CFileDialog object in a program that is compiled under Windows Vista. For more information about changes to CFileDialog under Windows Vista see CFileDialog Class.

Requirements

Header: afxwin.h

See Also

Reference

CDialog Class

Hierarchy Chart

WM_SETFONT

CWnd::SetFont

Other Resources

CDialog Members