Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
int GetLogFont( LOGFONT * pLogFont );
Return Value
Nonzero if the function succeeds, otherwise 0.
Parameters
pLogFont
Pointer to the structure to receive the font information.
Remarks
Call this function to retrieve a copy of the LOGFONT structure for Cfont.
Example
// The code fragment shows how to retrieve a copy of the
// LOGFONT structure for a currently selected font of a window.
CFont* font = pWnd->GetFont();
if (font)
{
LOGFONT lf;
font->GetLogFont(&lf);
TRACE("Typeface name of font = %s\n", lf.lfFaceName);
}