Share via


CFontDialog::IsBold

BOOLIsBold()const;

Return Value

Nonzero if the selected font has the Bold characteristic enabled; otherwise 0.

Remarks

Call this function to determine if the selected font is bold.

Example

// Is the selected font bold?
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   BOOL bold = dlg.IsBold();
   TRACE("Is the selected font bold? %d\n", bold);
}

CFontDialog OverviewClass MembersHierarchy Chart

See Also   CFontDialog::GetCurrentFont