Search code examples
winapijump-listshell32

Show Window specific JumpList in Windows


My program opens multiple windows on taskbar (not MDI). I want to display a Jumplist that is specific for each Window. How is it done?


Solution

  • Windows uses the Application User Model ID to group taskbar buttons and jump lists. This lets you group multiple processes together, or in your case split multiple windows from the same process.

    You can assign a different AppUserModelID to a window by using the SHGetPropertyStoreForWindow() function to obtain the window's IPropertyStore interface and then set its System.AppUserModel.ID property.