是否可以用菜单以外的其他内容替换 Windows 资源管理器上下文菜单?

发布于 2024-10-04 00:39:02 字数 80 浏览 0 评论 0原文

我想编写一个应用程序/扩展程序,将默认的资源管理器右键单击上下文菜单替换为菜单以外的其他内容,最好是自定义窗口。这可能吗?如果可能的话,如何实现?

I would like to write an application/extension that would replace the default explorer right-click context menu with something other than a menu, preferably a custom window. Is this possible, and if so, how?

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

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

发布评论

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

评论(1

苄①跕圉湢 2024-10-11 00:39:02

我自己还没有尝试过,但实现一个对资源管理器窗口进行子类化的 shell 扩展似乎是一种可行的方法。以下 CodeProject 文章讨论了带有键盘挂钩的 shell 扩展。应该可以调整它来拦截鼠标和 WM_CONTEXT 消息:

带键盘挂钩的 Shell 扩展

I haven't tried it myself, but implementing a shell extension that subclasses the explorer window seems like the way to go. The following CodeProject article talks about a shell extension with a keyboard hook. It should be possible to adapt this to intercept the mouse and WM_CONTEXT messages:

Shell Extension with Keyboard Hook

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