更改Windows 10的任务栏颜色 [英] Change the taskbar color of Windows 10

查看:329
本文介绍了更改Windows 10的任务栏颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改任务栏编程的颜色吗?我想改变颜色为固体(不透明)黑色但只在任务栏(这就是为什么我不能使用 DwmSetColorizationParameters 功能的原因。它改变了整个色的Windows UI)

Is it possible to change the color of the taskbar programmatically? I want to change the color to solid (opaque) black but ONLY for the taskbar (That's the reason why I can't use the DwmSetColorizationParameters function. It changes the color for entire UI of Windows)

我能够通过发现任务栏的的hWnd FindWindow函数(Shell_TrayWnd,NULL); ),并通过设置DWM API函数的透明度 DwmEnableBlurBehindWindow ,但我不知道如何改变颜色。

I am able to disable the transparency by finding the taskbar's hWnd (FindWindow("Shell_TrayWnd", null);) and setting the transparency by DWM API function DwmEnableBlurBehindWindow but I don't know how to change the color.

推荐答案

没有,这是不可能的。在任务栏窗口没有自己的特殊颜色。

No, this isn't possible. The taskbar window doesn't have its own special color.

DWM设置颜色为所有窗口,这就是为什么你可以用DWM API的修改(虽然是无证,不支持的一个)。在任务栏只是一个窗口。没什么特别的。

DWM sets the color for all windows, that's why you can modify it with the DWM APIs (albeit an undocumented, unsupported one). The taskbar is just a window. Nothing special.

事实上,你可以入侵周围像 FindWindow函数的东西,但即使撇开如何的关注天生脆弱的东西类型,还是有没有方法来设置一个单独的窗口不同的玻璃颜色。

Indeed, you can hack around with things like FindWindow, but even putting aside the concerns about how inherently fragile that type of thing is, there's still no way to set a different glass color for an individual window.

也许你可以考虑创建自己的主题? (也正式支持的。)

Maybe you could look into creating your own theme? (Also officially unsupported.)

这篇关于更改Windows 10的任务栏颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆