Condividi tramite


CFontDialog::GetWeight

Chiamare la funzione per recuperare lo spessore del tipo di carattere selezionato.

int GetWeight( ) const;

Valore restituito

Lo spessore del tipo di carattere selezionato.

Note

Per ulteriori informazioni sullo spessore di un tipo di carattere, vedere CFont::CreateFont.

Esempio

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

Requisiti

Header: afxdlgs.h

Vedere anche

Riferimenti

Classe CFontDialog

Grafico delle gerarchie

CFontDialog::GetCurrentFont

CFontDialog::IsBold