Share via


CFontDialog::GetStyleName

CStringGetStyleName()const;

Return Value

The style name of the font.

Remarks

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

Example

// Get the style name of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   CString stylename = dlg.GetStyleName();
   TRACE("Style name of the selected font = %s\n", stylename);
}

CFontDialog OverviewClass MembersHierarchy Chart

See Also   CFontDialog::GetFaceName, CFontDialog::GetCurrentFont