CFont::GetLogFont
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);
}