Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a c++ application for which I am creating shortcuts at Start menu & Desktop. But the problem appears when the user right clicks on the shortcut present in start menu.Multiple "open" are coming there while in case of desktop it is coming as intended(Like open,properties..).Any thoughts?

What I have tried:

As the code for creation of context menus is same for both I dont think its something related to code.This is done with using CreateMenu shell function.
Posted
Updated 11-Jun-16 23:29pm
Comments
Richard MacCutchan 12-Jun-16 3:19am    
You need to provide more details about your code and how it is handling the clicks. We cannot guess what is happening.

1 solution

The menu entries are stored in the registry or are created dynamically using shell extensions.

Because the behaviour differs for the start menu and the desktop, it seems that the second option applies here. So you should check where you define the menu items (e.g. a setup program that creates registry entries for static menu items and your code that uses shell extensions).

There are free utilities to show and edit context menu items: ShellMenuView - Disable/enable context menu items of Explorer[^] and ShellExView - Shell Extension Manager For Windows[^]. These might help to identify where you add the additional items.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900