|
发表于 2013-05-14 18:05:32
|
显示全部楼层
此主题尚未评级 - 评价此主题
Return Value
Nonzero if the function succeeds, otherwise 0.
Parameters
pLogFont
Pointer to the http://technet.microsoft.com/zh-cn/library/ms533931 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.
{
LOGFONT lf;
font->GetLogFont(&lf);
TRACE("Typeface name of font = %s\\n", lf.lfFaceName);
}
CFont::GetLogFont
Visual Studio 6.0
此主题尚未评级 - 评价此主题
CFont::GetLogFont
int GetLogFont( LOGFONT * pLogFont );
Return Value
Nonzero if the function succeeds, otherwise 0.
Parameters
pLogFont
Pointer to the http://technet.microsoft.com/zh-cn/library/ms533931 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);
} |
|