在OnInitDialog() 中:
font.CreatePointFont(90,"Arial");
SetFont(&font);
CWnd *pWnd = GetWindow(GW_CHILD);
while(pWnd != NULL)
{
pWnd-> SetFont(&font);
pWnd = pWnd-> GetWindow(GW_HWNDNEXT);
}
这种方式有利于外部挂载翻译文件,当使用英文,中文,以及其他字体时,对话框的字体切换非常方便。
在OnInitDialog() 中:
font.CreatePointFont(90,"Arial");
SetFont(&font);
CWnd *pWnd = GetWindow(GW_CHILD);
while(pWnd != NULL)
{
pWnd-> SetFont(&font);
pWnd = pWnd-> GetWindow(GW_HWNDNEXT);
}
这种方式有利于外部挂载翻译文件,当使用英文,中文,以及其他字体时,对话框的字体切换非常方便。