Windows 资源管理器获取所选项目的列表并将其传递给另一个进程

发布于 2024-12-06 08:35:28 字数 184 浏览 2 评论 0原文

我必须创建文件/文件夹管理系统。用户可以在其中选择多个文件/文件夹并从上下文菜单中执行命令。 该命令发送所有选定文件/文件夹列表的列表以调用进程。这样,进程就可以处理文件/文件夹列表。 如果进程正在运行,则上下文菜单不应显示或呈灰色。

我添加了上下文菜单,但找不到禁用它的方法。我怎样才能做到这一切? 任何可能的学习链接都会有很大帮助吗?

I have to create File/Folder management system. In which user can select multiple files/folder and from context menu execute an command.
That command sends list of all selected files/folders list to invoke a process. So that, process can work on file/folder list.
If process is running the context menu should not shown or greyed out.

I added context menu but can't find the way to disable it. How can I do all this?
Any possible study link will help a lot?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哀由 2024-12-13 08:35:28

您的 IContextMenu::QueryContextMenu 处理程序可以应用您想要的任何逻辑来确定是否显示/隐藏菜单项,以及如果显示的话,是否启用或禁用它。但请注意,一般来说,由于 CLR 注入问题,不应在托管代码中编写 shell 扩展。

Your IContextMenu::QueryContextMenu handler can apply whatever logic you desire to determine whether to show/hide a menu item, and if shown, whether it is enabled or disabled. Note, however, that in general, shell extensions should not be written in managed code due to CLR injection concerns.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文