CFont *pFont = new CFont;
LOGFONT logfont;
memset(&logfont, 0, sizeof(LOGFONT));
logfont.lfWeight = FW_NORMAL; //600 FW_SEMIBOLD
logfont.lfHeight = -13;
lstrcpy(logfont.lfFaceName, _T("宋体"));
pFont->CreateFontIndirect(&logfont);
m_Tree->SetFont(pFont, NULL);
m_Tree->SetTextColor(RGB(235, 115, 0));
【MFC控件设置字体】
最新推荐文章于 2023-06-21 17:52:50 发布