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

查看:169
本文介绍了在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。它的任务栏进度API添加在Windows 7中你可以用它来让你的任务栏按钮黄色,绿色或红色。我个人不建议,因为用户会认为你在显示进度。

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天全站免登陆