Change icon of group in taskbar (Win7)

前端 未结 2 756
别那么骄傲
别那么骄傲 2021-01-22 07:09

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

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 08:00

    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.

提交回复
热议问题