本文介绍了更改任务栏中组的图标 (Win7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 LoadImage 我改变了一个组中所有窗口的图标.但是组图标不会改变.如何获取对应的组到窗口并设置其图标?

Using LoadImage I changed the icon of all the windows in a group. However the group icon does not change. How can I get the corresponding group to a window and set its icon?

推荐答案

组图标来自 EXE 文件本身(在多个 EXE 贡献于同一组的情况下,我想任务栏有一些算法来决定哪个 EXE从中拉出图标).没有官方 API 来更改组图标.您必须直接操作任务栏,这并非不可能,但也并非微不足道.

The group icon comes from the EXE file itself (in the case of multiple EXEs contributing to the same group, I imagine the taskbar has some algorithm to decide which EXE to pull the icon from). There is no official API to change the group icon. You would have to manipulate the Taskbar directly, which is not impossible but not trivial either.

更新:我刚刚看到以下答案,也许会对您有所帮助:

Update: I just came across the following answer, maybe it will help you:

https://stackoverflow.com/a/219128/65863

更新:显然,上述链接中的注册表值仅适用于将应用固定到任务栏的情况.

Update: Apparently the Registry value in the above link only applies if the app is pinned to the Taskbar.

这篇关于更改任务栏中组的图标 (Win7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 06:29