control windows 7 taskbar grouping for my application

后端 未结 2 523
南方客
南方客 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.

    0 讨论(0)
  • 2021-02-09 19:30

    Application User Model IDs says:

    "If different windows owned by one process require different AppUserModelIDs to control taskbar grouping, use SHGetPropertyStoreForWindow to retrieve the window's property store and set the AppUserModelID as a window property."

    0 讨论(0)
提交回复
热议问题