Compartir a través de


CFont::GetLogFont

Llame a esta función para recuperar una copia de la estructura de LOGFONT para CFont.

int GetLogFont(
   LOGFONT * pLogFont 
);

Parámetros

  • pLogFont
    Puntero a la estructura de LOGFONT para recibir información de fuentes.

Valor devuelto

Distinto de cero si la función tiene éxito, si no 0.

Ejemplo

// The code fragment shows how to retrieve a copy of the 
// LOGFONT structure for a currently selected font of a window.

CFont* pFont = pWnd->GetFont();
if (NULL != pFont)
{
   LOGFONT lf;
   pFont->GetLogFont(&lf);
   TRACE(_T("Typeface name of font = %s\n"), lf.lfFaceName);
}

Requisitos

encabezado: afxwin.h

Vea también

Referencia

Clase de CFont

Gráfico de jerarquía

LOGFONT

GetObject