.NET Windows 7 跳转列表 - 复选框/单选跳转列表项

发布于 2024-07-25 22:04:12 字数 270 浏览 7 评论 0原文

我想创建一个跳转列表项,该项目在选项前面带有勾号或圆形复选标记。 我正在使用 Windows API 代码包 进行 .NET 实现。

我查看了 SDK 文档,但找不到任何可以在跳转列表项前面启用勾号或圆形复选标记的内容。 我知道我可以直接破解跳转列表项前面的图标,但是这是最好的方法吗?

提前致谢!

I would like to create a jumplist item that functions with a tick or round checkmark in front of the option. I am using the Windows API Code Pack for the .NET implementation.

I have had a look around the SDK documentation but I couldn't find anything that would enable a tick or round checkmark in front of the Jump List Item. I understand that I could just hack the icon in front of the Jumplist item, however is that the best method?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紙鸢 2024-08-01 22:04:12

是的,使用图标黑客确实是完成您想要做的事情的唯一方法。 对于频繁/MRU 列表,您甚至没有图标作为选项。

您可以为被视为自定义任务的项目定义图标。 单击时,它将向您的应用程序传递命令行参数,您将需要读取并存储该信息。 当您重建跳转列表时,您将填充跳转列表并根据最近存储的状态设置图标。

我认为这当然是应该为 Windows 7 版本提供的功能,但它并不是一个大问题,因为您无法禁用跳转列表中的任务链接...

Yes, using an icon hack is really the only way to accomplish what you are trying to do. For the frequent/MRU lists, you won't even have icons as a option.

You can defined the icons for items that are considered custom Tasks. When clicked, it will pass a command line argument to your application, and you will need to read and stored that information. When you rebuild the jumplist, you would populate the jumplist and set the icons according the the most recently stored state.

I think this is certainly a feature that should have been provided for the Windows 7 release, but it isn't quite as big of a problem as the fact that you cannot disable the Task links in a jumplist...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文