以编程方式更改 windows 7 的 windows 颜色边框 [英] programmatically change the windows color border of windows 7
问题描述
可能的重复:
Windows 如何改变 Aero Glass 的颜色?
在 Windows 7 上运行 aero 时,如何使用 c# 以编程方式更改窗口边框颜色?
using c# how do you programmatically change the windows border color when running aero on windows 7?
推荐答案
无法单独更改窗口的颜色,但您可以通过 resgistry 更改 OS 范围内的颜色.条目应该是这样的:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Glass Colorization\Swatches
与 HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM - ColorizationColor代码>
It is not possible to change the color of a window individually but you can change the color OS-wide via the resgistry. The entry should be something like this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Glass Colorization\Swatches
in conjunction with HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM - ColorizationColor
在您的代码中,您只能调整 Glass 边框的形状和大小,但我认为不能调整颜色.在 Windows 窗体中,它是这样做的 这个和在 WPF 这样的.
From within your code you can only adjust the shape and the size of your Glass border but I don't think the color. In Windows Forms it is done like this and in WPF like this.
这篇关于以编程方式更改 windows 7 的 windows 颜色边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!