c++ - 在 NONCLIENTMETRICS 中,状态字体、消息字体和标题字体之间有什么区别?

标签 c++ windows internationalization fonts

好吧,刚刚发现使用 DEFAULT_GUI_FONT 实际上用作默认 GUI 字体是错误的....有一个 NONCLIENTMETRICS我被告知要使用的结构,但我不确定我应该使用哪种返回的字体——即状态字体、消息字体和标题字体之间有什么区别,我应该什么时候使用它们?

最佳答案

描述的很清楚,不是吗?

lfMenuFont A pointer to a LOGFONT structure that contains information about the font used in menu bars.

lfStatusFont A pointer to a LOGFONT structure that contains information about the font used in status bars and tooltips.

lfMessageFont A pointer to a LOGFONT structure that contains information about the font used in message boxes.

下拉菜单使用菜单字体,状态行使用状态字体,消息框使用消息字体。

编辑:不幸的是,lfCaptionFont 和 lfSmCaptionFont 的描述是自引用的:

lfCaptionFont A pointer to a LOGFONT structure that contains information about the caption font.

窗口的标题是客户区上方的矩形,其中显示了窗口标题和关闭按钮。这使用标题字体。消息字体用于消息框。

关于c++ - 在 NONCLIENTMETRICS 中,状态字体、消息字体和标题字体之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4581606/

相关文章:

c++ - 二维 vector 未正确保存和加载 boost::serialize 库

C++ 问题 : conflicting declaration

windows - 批处理文件编码

internationalization - 如何创建多语言调查

c++ - 如何在openCV C++上填充圆圈

c - 变量的值存储在 C 中的位置

c - 如何通过命令提示符更改标题并保留系统信息

internationalization - Globalize.js 与 i18next.js

python - 制作一个 wxPython 应用程序多语言

c++ - 在 OpenCV 中从 Mat 对象构建图像