CFontDialog::IsBold

Rufen Sie diese Funktion, um zu bestimmen, ob die ausgewählte Schriftart fett formatiert ist.

BOOL IsBold( ) const;

Rückgabewert

Ungleich 0 (null), wenn die ausgewählte Schriftart das Fett Merkmal aktiviert ist; 0 andernfalls.

Beispiel

// 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);
}

Anforderungen

Header: afxdlgs.h

Siehe auch

Referenz

CFontDialog-Klasse

Hierarchien-Diagramm

CFontDialog::GetCurrentFont