Freigeben über


CFontDialog::IsBold

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

BOOL IsBold( ) const;

Return Value

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

Example

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

Requirements

Header: afxdlgs.h

See Also

Reference

CFontDialog Class

Hierarchy Chart

CFontDialog::GetCurrentFont