Compartir a través de


CFontDialog::GetWeight

Llame a esta función para recuperar el peso de la fuente seleccionada.

int GetWeight( ) const;

Valor devuelto

La proporción de la fuente seleccionada.

Comentarios

Para obtener más información sobre la proporción de una fuente, vea CFont::CreateFont.

Ejemplo

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

Requisitos

encabezado: afxdlgs.h

Vea también

Referencia

Clase de CFontDialog

Gráfico de jerarquía

CFontDialog::GetCurrentFont

CFontDialog::IsBold