Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想绘制一些禁用的列表视图项目,并想模仿禁用的标准 Windows 列表框的外观。它使用哪些颜色?我在参考图表:-) 或 Google中找不到任何内容。
编辑:发布后不久,我突然想到了 - 它似乎是 COLOR_GRAYTEXT。
我想你可以禁用它,它会显示浏览器默认值,我猜 IE 使用与 Windows 相同的样式(如果不是,截图会很好..)
<select disabled/><option...
像这样:禁用选择
我正在回答我自己的问题以便能够关闭该问题(即接受答案)。
禁用的 Windows 列表框在 COLOR_WINDOW 上的 clWindow/COLOR_GRAYTEXT 上绘制 clGrayText。