[英]Windows Explorer Context Menu
I want to add a context menu entry with C++. 我想用C ++添加上下文菜单项。 I've been searching but all I can find is some jackass trying to sell me some BS program that does it for me which is not what I am looking for.
我一直在搜索,但是我只能找到一些笨蛋试图向我出售一些为我做的BS程序,这不是我想要的。 I'm not looking for anything that uses .NET or Visual C++ either.
我也没有在寻找使用.NET或Visual C ++的任何东西。 I want the straight C++ way of doing this.
我想要直接的C ++方法。
You can add a right-click menu item that just runs a program, simply by registry editing. 您可以添加一个右键单击菜单项,仅通过注册表编辑即可运行程序。 No need to do shell extension for that.
无需为此进行外壳扩展。 Eg I used to have an extract icon thing (copy to clipboard),
例如,我以前有一个提取图标的东西(复制到剪贴板),
HKEY_CLASSES_ROOT\*\shell\copyIcon\=Copy icon to clipboard HKEY_CLASSES_ROOT\*\shell\copyIcon\command="path to the program" %1
Cheers & hth., 干杯,……
A decent tutorial, ignore the jackass title, is available here . 此处提供了一个不错的教程,忽略了公驴标题。 This kind of shell programming requires COM, no escaping that.
这种shell编程需要COM,而无需逃避。 Trying to write COM code without MSVC support classes is character-building.
尝试在没有MSVC支持类的情况下编写COM代码是在构建字符。 But possible, as long as you know COM really well.
但是有可能,只要您对COM非常了解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.