How to add Windows 7 Jump Lists to a application

2020-02-14 18:05发布

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.

2条回答
贼婆χ
2楼-- · 2020-02-14 19:05

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.

查看更多
姐就是有狂的资本
3楼-- · 2020-02-14 19:09

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.

查看更多
登录 后发表回答