control windows 7 taskbar grouping for my application

后端 未结 2 522
南方客
南方客 2021-02-09 18:40

My program needs to open a series of information windows when requested by a user, and would like to implement some kind of custom grouping on the windows 7 taskbar.

De

2条回答
  •  时光说笑
    2021-02-09 19:28

    I solved it by using the Windows API Code Pack for .NET and the following code:

    TaskbarManager.Instance.SetApplicationIdForSpecificWindow(window, guid);
    

    Window assigned with the same id will be grouped together - windows with a unique id will have a separate taskbar icon.

提交回复
热议问题