多个“开放”的在开始菜单中的快捷方式菜单中。 [英] Multiple "open" in context menu for shortcut in start menu.

查看:105
本文介绍了多个“开放”的在开始菜单中的快捷方式菜单中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个c ++应用程序,我正在开始菜单中创建快捷方式。桌面。但是当用户右键单击开始菜单中的快捷方式时会出现问题。多个打开即将到来,而在桌面的情况下它会按预期进行(如打开,属性..)。有什么想法吗?



我尝试过:



由于创建上下文菜单的代码相同因为我不认为它与代码有关。这是通过使用CreateMenu shell函数完成的。

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.

推荐答案

菜单条目存储在注册表中或使用动态创建shell扩展。



因为开始菜单和桌面的行为不同,所以似乎第二个选项适用于此处。所以你应该检查你定义菜单项的位置(例如,为静态菜单项创建注册表项的安装程序和使用shell扩展的代码)。



有用于显示和编辑上下文菜单项的免费实用程序: ShellMenuView - 禁用/启用资源管理器的上下文菜单项 [ ^ ]和 ShellExView - 适用于Windows的Shell扩展管理器 [ ^ ]。这些可能有助于确定添加其他项目的位置。
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.


这篇关于多个“开放”的在开始菜单中的快捷方式菜单中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆