Windows 中的默认对话框字体是 MS Shell Dlg。
我不喜欢它,因为它不正确。
手动更改单个对话框项的字体很容易,但是如何使用“正确”的系统字体(来自 lfMessageFont
) 应用于所有其控件调用 (非手动) rel="nofollow noreferrer">DialogBox
(或使用 ATL/WTL)?
注意:
我多次说过“不是手动”的原因是我寻找一个比使用 EnumChildWindows
(或类似的)循环遍历所有内容更好的解决方案。有吗?
The default dialog box font in Windows is MS Shell Dlg.
I don't like it, because it's not correct.
It's easy to manually change the font of a single dialog item, but how do I display a dialog box with the "correct" system font (from lfMessageFont
) applied to all of its controls by default (not manually) when calling DialogBox
(or using ATL/WTL)?
Note:
The reason I've said "not manually" so many times is that I am looking for a solution better than looping through everything with EnumChildWindows
(or the like). Does one exist?
发布评论
评论(1)
来自关于对话框:
我想这就是你想要的。如果这不起作用,那么我想您必须 手动加载资源和修改 模板,然后将其传递到 DialogBox。
From About Dialog Boxes:
I think this is what you want. If that doesn't work, then I guess you'll have to load the resource manually and modify the template before passing it to DialogBox.