Sdílet prostřednictvím


CFontDialog::GetSize

Volání této funkce můžete získat velikost vybraného písma.

int GetSize( ) const;

Vrácená hodnota

Velikost písma v desetinách bodu.

Příklad

// Get the size of the selected font, if any.
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
   int size = dlg.GetSize();
   TRACE(_T("The size of the selected font = %d\n"), size);
}

Požadavky

Záhlaví: afxdlgs.h

Viz také

Referenční dokumentace

Třída CFontDialog

Graf hierarchie

CFontDialog::GetWeight

CFontDialog::GetCurrentFont