propoVC++2015改变控件字体⼤⼩
//今天需要更改VC对话框上的控件字体⼤⼩,根据⽹上资源,形成代码如下,特此记录。
//改变控件字体⼤⼩
//在OnInitialDialog中调⽤函数更改字体⼤⼩
void CEdgeExtractAndVectorizationDlg::ChangeButtonFont(UINT idButton/*控件ID*/,int nHeight/*字体⼤⼩*/) {
日本语能力测试成绩查询
CFont * pButtonFont;
pButtonFont = new CFont;
pButtonFont->CreateFont(nHeight, // nHeight
2011年中考满分作文
汉堡包英文0, // nWidth
高中英语网
设计者0, // nEscapement
0, // nOrientation
0, // nWeight
pingyangFALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut天津兼职翻译
GB2312_CHARSET, // nCharSet //字符集
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
淘宝十周年>megi_T("仿宋_GB2312")); // lpszFac//字体
((CWnd *)GetDlgItem(idButton))->SetFont(pButtonFont);
}