CFontDialog::IsUnderline

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

BOOL IsUnderline( ) const;

Return Value

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

Example

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

Requirements

Header: afxdlgs.h

See Also

Concepts

CFontDialog Class

CFontDialog Members

Hierarchy Chart

CFontDialog::GetCurrentFont