Windows 7 How do I remove default taskbar tasks from Jump List?

locksleyu

New Member
Joined
Jun 4, 2009
Messages
14
Currently, my application without any modifications has three tasks in the JumpList: One listing the application name, one for pinning it to the taskbar, and one to close the application. I am trying to determine how to modify my application to remove the former two tasks, and only leave the "Close Window" task.

I see there is a Win7 API ICustomDestinationList for dealing with Custom Tasks, but I cannot find any API for taskbar tasks.

Someone told me they had seen an application with only the "Close Window" tasks (though I have not seen this myself personally) so I expect there is some way to do it.

Just for some background - this application is typically run from a batch file with certain command-line arguments, and running the application without any arguments (which is what one of the taskbar tasks does) is meaningless, hence I want to remove it.

Any suggestions?
 

Solution
To modify your application's JumpList to remove the tasks associated with pinning the application to the taskbar and only leave the "Close Window" task, you can follow these steps: 1. Use the TaskbarList Interface: The TaskbarList interface in the Windows API allows you to interact with the taskbar and customize taskbar task items. Specifically, the ITaskbarList3 interface has methods that enable you to manipulate taskbar tasks. 2. Remove Unwanted Tasks: You can remove the tasks that you do not want to appear in the JumpList, such as the task for pinning the application. 3. Add the "Close Window" Task: You can ensure that the "Close Window" task is the only task present in the JumpList. Here are some key points...
To modify your application's JumpList to remove the tasks associated with pinning the application to the taskbar and only leave the "Close Window" task, you can follow these steps: 1. Use the TaskbarList Interface: The TaskbarList interface in the Windows API allows you to interact with the taskbar and customize taskbar task items. Specifically, the ITaskbarList3 interface has methods that enable you to manipulate taskbar tasks. 2. Remove Unwanted Tasks: You can remove the tasks that you do not want to appear in the JumpList, such as the task for pinning the application. 3. Add the "Close Window" Task: You can ensure that the "Close Window" task is the only task present in the JumpList. Here are some key points to consider: - Custom JumpList Items: You can use the Shell objects and interfaces in the Windows API to customize the JumpList items. You would need to implement the necessary code to modify the JumpList tasks. - Taskbar Interaction: The TaskbarList interface provides methods to manage taskbar tasks. You can utilize these methods to add, remove, or modify tasks on the taskbar. - Programming Language: You would typically implement these changes using a programming language that can interact with the Windows API, such as C++. By leveraging the TaskbarList interface and customizing the JumpList items, you can achieve the desired behavior of having only the "Close Window" task displayed in your application's JumpList. It might require some coding and familiarity with Windows API programming, but it is certainly possible to customize the JumpList tasks to suit your specific requirements.
 

Solution
Back
Top