Change the taskbar color of Windows 10

旧巷老猫 提交于 2019-12-14 02:53:37

问题


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)

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.


回答1:


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

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.

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.)



来源:https://stackoverflow.com/questions/34696332/change-the-taskbar-color-of-windows-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!