15,979
社区成员
发帖
与我相关
我的任务
分享
//设置list字体
LOGFONT lf;
memset(&lf, 0, sizeof(LOGFONT)); // zero out structure
lf.lfHeight = 15; // request a 12-pixel-heightfont
_tcscpy(lf.lfFaceName, _T("Times New Roman")); // request a face name "Arial"
m_UseFont.CreateFontIndirect(&lf); // create the font CFont m_UseFont 类成员变量
m_wndListView.SetFont(&m_UseFont,TRUE); //m_wndListView 为控件变量