Internet Explorer 工具栏背景使用什么 HBRUSH?
颜色 (#E6EFFA) 以红色圈出。
我正在尝试制作一个与 IE UI 相匹配的 Internet Explorer 工具栏。我应该使用什么 HBRUSH
来获得该颜色?我尝试查看各种标准 HBRUSH(0 到 31),但没有找到任何与颜色相匹配的颜色,更不用说“正确”的颜色了。我不是那种看待这种颜色的正确方式;大概对它进行硬编码是一个坏主意。
The color (#E6EFFA) is circled in red.
I am trying to make an Internet Explorer Toolbar which matches IE's UI. What HBRUSH
should I use to get that color? I tried looking through the various standard HBRUSHs (0 to 31) and did not find any that matched the color, never mind one that was the "right" one. I am not what the proper way to look that color up is; presumably hardcoding it is a bad idea.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建此类画笔的常用方法是通过
CreateSolidBrush(color)
。 jeffamaphone 的评论是正确的;GetSysColor(ID)
是获取标准颜色的正确方法。The usual way to create such a brush is via
CreateSolidBrush(color)
. The comment from jeffamaphone is correct;GetSysColor(ID)
is the proper way to get standard colors.