|
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)); |
|