gpt4 book ai didi

c++ - Win32 : set default font and text color for rich edit

转载 作者:搜寻专家 更新时间:2023-10-31 01:53:02 45 4
gpt4 key购买 nike

这应该是一个简单的问题,但我无法在谷歌上找到答案:如何使用纯 C++ 和 win32 为 richedit 设置默认字体和颜色?

最佳答案

来自 MSDN :

You can also use EM_SETCHARFORMAT and EM_GETCHARFORMAT messages to set and retrieve the character formatting of the insertion point, which is the formatting that is applied to any subsequently inserted characters. For example, if an application sets the default character formatting to bold and the user then types a character, that character is bold.

这就是你要找的吗?

关于c++ - Win32 : set default font and text color for rich edit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11724231/

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