VC++学习笔记1--------------模式对话框中“static text”控件的字体大小改变
在对话框头文件添加:
CStatic m_static;
CFont font;
在BOOL CYourDlg::OnInitDialog()中添加
m_static.SubclassDlgItem(IDC_TEXT,this);
LOGFONT log;
GetObject(::GetStockObject(DEFAULT_GUI_FONT),sizeof(log),&log);
log.lfHeight=45; //改
log.lfWidth=30; //改
log.lfCharSet=GB2312_CHARSET;
lstrcpy(log.lfFaceName, _T("宋体"));
font.CreateFontIndirect(&log);
m_static.SetFont(&font);
摘自 奔跑的蜗牛
补充:软件开发 , Vc ,