How to add Windows 7 Jump Lists to a application

久未见 提交于 2019-11-28 09:45:49

问题


I want to add custom jump list entries to my application in Windows 7.

The menus I am referring to are the following.

  1. Pin a application to the taskbar.

  2. Now right click on the application.

  3. Some applications like windows media player etc. have custom options that you can run.

How do I go about adding these to my application.


回答1:


The Windows Team Blog has some articles about Jump Lists and other new Windows 7 Shell features:

  • Developing for the Windows 7 Taskbar – Jump into Jump Lists – Part 1, Part 2, Part 3

Those are geared towards C++ applications, there are also managed code APIs which package those in a way a little easier accessible to .NET developers.




回答2:


For .Net code, there are some good example and libraries in the Windows API Code Pack

The Samples\Shell\TaskbarDemo specifically deals with the TaskBar APIs and shows how to do Jump Lists and control the icon.

Not sure if it has any examples of custom actions like Media Player.



来源:https://stackoverflow.com/questions/1409487/how-to-add-windows-7-jump-lists-to-a-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!