Share via


CFontDialog::GetFaceName

Call this function to retrieve the face name of the selected font.

CString GetFaceName( ) const;

Return Value

The face name of the font selected in the CFontDialog dialog box.

Example

// Get the face name of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   CString facename = dlg.GetFaceName();
   TRACE(_T("Face name of the selected font = %s\n"), facename);
}

Requirements

Header: afxdlgs.h

See Also

Reference

CFontDialog Class

Hierarchy Chart

CFontDialog::GetCurrentFont

CFontDialog::GetStyleName