在Windows上更改任务栏按钮颜色 [英] Changing taskbar button color on Windows

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

问题描述

同一应用程序的多个实例同时运行,并且由于每个实例都有多个窗口,因此用户不容易在它们之间导航。我通过将不同应用程序实例的标题栏颜色设置为不同的值来帮助用户。例如,首先启动的应用程序实例的所有窗口都会有红色标题栏,第二个实例的所有窗口都会有一个绿色的窗口等。

Multiple instances of the same application are running at the same time, and since each has multiple windows, it is not easy for the user to navigate between them. I help users by setting the titlebar color of different application instances to a different value. For example, all windows of the app instance started first will have red titlebar, all windows of the second instance will have a green one, etc.

将应用实例的任务栏按钮颜色设置为我用于标题栏的颜色。这可能吗?如果没有,我会很高兴与类似差异化效果的解决方案,如设置任务栏按钮上的文本的颜色,添加一个重叠图标等。

It would also be useful to set the taskbar button color of app instances to the color I use for the titlebar. Is this possible? If not then I would be happy with a solution having similar differentiating effect, like setting the color of the text on the taskbar button, adding an overlay icon to it, etc.

解决方案应该在Windows XP和更高版本的Windows版本上运行。语言可以是C / C ++,C#或Delphi。非常感谢!

The solution should work on Windows XP and later Windows versions. The language can be C/C++, C# or Delphi. Thank you very much in advance!

推荐答案

您不能希望实现不同颜色的任务栏按钮。

You cannot hope to achieve differently coloured taskbar buttons.

您可以安装自己的shell,并完全控制任务栏,但不能指望您的客户端这样做。

You could install your own shell and take complete control of the taskbar, but you can't expect your clients to do that.

您不能期望画在Windows任务栏的顶部。任务栏是动画。你怎么跟上呢?你怎么会甚至知道按钮在哪里?我不相信有一个公共的API会告诉你。

You cannot expect to paint over the top of the Windows taskbar. The taskbar is animated. How are you going to keep up with that? How are you going to even know where the buttons are? I don't believe that there is a public API that will tell you that. I think you have to rule that idea out.

有一个API允许你改变任务栏按钮的颜色。它是在Windows 7中添加的任务栏进度API。您可以使用它来使任务栏按钮为黄色,绿色或红色。我个人不建议,因为用户会认为你正在显示进度。

There is an API that allows you to change the colour of a taskbar button. It's the taskbar progress API added in Windows 7. You could use that to make your taskbar buttons yellow, green or red. I personally would not recommend that since the user will think you are showing progress.

可用的主要选项是更改窗口标题,因此文本出现在任务栏按钮中。或更改图标。

The main options that are available to you are to change the window caption, and so the text that appears in the taskbar button. Or to change the icon.

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

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