Internet Explorer 工具栏背景使用什么 HBRUSH?

发布于 2024-12-10 13:48:13 字数 255 浏览 0 评论 0原文

图片 颜色 (#E6EFFA) 以红色圈出。

我正在尝试制作一个与 IE UI 相匹配的 Internet Explorer 工具栏。我应该使用什么 HBRUSH 来获得该颜色?我尝试查看各种标准 HBRUSH(0 到 31),但没有找到任何与颜色相匹配的颜色,更不用说“正确”的颜色了。我不是那种看待这种颜色的正确方式;大概对它进行硬编码是一个坏主意。

Image
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不如归去 2024-12-17 13:48:13

创建此类画笔的常用方法是通过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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文