在 Windows 中显示 Window 个特定的 JumpList

Show Window specific JumpList in Windows

我的程序在任务栏(不是 MDI)上打开多个 windows。我想显示一个特定于每个 Window 的跳转列表。它是怎么做到的?

Windows 使用 Application User Model ID 对任务栏按钮和跳转列表进行分组。这使您可以将多个进程组合​​在一起,或者在您的情况下从同一进程中拆分多个 windows。

您可以使用 SHGetPropertyStoreForWindow() function to obtain the window's IPropertyStore interface and then set its System.AppUserModel.ID 属性.

将不同的 AppUserModelID 分配给 window