.NET Windows 7 跳转列表 - 复选框/单选跳转列表项
我想创建一个跳转列表项,该项目在选项前面带有勾号或圆形复选标记。 我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,使用图标黑客确实是完成您想要做的事情的唯一方法。 对于频繁/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...