Share via


CFontDialog::GetFaceName

CStringGetFaceName()const;

Return Value

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

Remarks

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

Example

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

CFontDialog OverviewClass MembersHierarchy Chart

See Also   CFontDialog::GetCurrentFont, CFontDialog::GetStyleName