【MFC控件设置字体】

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


版权声明:本文为z_y__l原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。