gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 12:21:46 24 4
gpt4 key购买 nike

好吧,刚刚发现使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com