简体   繁体   English

控件的Windows 7系统默认颜色列表

[英]List of Windows 7 System default colors for controls

我正在尝试将我的应用程序的自定义控件颜色与Windows 7中使用的颜色相匹配。但是,我似乎无法找到Windows 7使用的所有颜色的完整列表。是否有包含这些颜色的内置类,或者我是否必须为我想要设计的每个控件使用颜色选择器。

If anyone's interested in seeing the system colours for different themes at a glance, I've created a reference here . 如果有人有兴趣一目了然地看到不同主题的系统颜色,我在这里创建了一个参考。

Use these functions and classes and set your application's colours dynamically: GetSysColor function (Win32), System.Windows.SystemColors class (Windows Presentation Foundation), System.Drawing.SystemColors class (Windows Forms). 使用这些函数和类并动态设置应用程序的颜色:GetSysColor函数(Win32),System.Windows.SystemColors类(Windows Presentation Foundation),System.Drawing.SystemColors类(Windows窗体)。

SystemColors类有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM