简体   繁体   English

Windows资源管理器上下文菜单上的InfoTip

[英]InfoTip on Windows explorer context menu item

I'm creating a c# application that adds entries in the registry to add items to the windows context menu like shown in this structure : 我正在创建一个c#应用程序,该应用程序在注册表中添加条目以将项目添加到Windows上下文菜单中,如下图所示:

  • HKCR HKCR
    • * *
      • shell 贝壳
        • MyApp MyApp的
          • command 命令

How can i get a infotip or tooltip while I'm hovering MyApp ? 悬停MyApp时如何获得信息提示或工具提示? I added a string value infoTip under MyApp key but it doesn't work. 我在MyApp键下添加了一个字符串值infoTip ,但它不起作用。

There's an example : while hovering context menu witch appears when you click on the horizontal arrow from (Start -> Shutdown). 有一个例子:在悬停上下文菜单时,当您单击(开始->关机)中的水平箭头时,将显示女巫。

Edit : I used a tool to inspect the class name for that menu and it turns out to be not a contextmenu but a toolbarwindow32 so i suppose that its infotip is not the same as a ( contextmenu #32768 ) if there's one. 编辑:我使用的工具来检查该菜单类名和它原来是不是一个contextmenu ,但一个toolbarwindow32所以我想,它的信息提示是不一样的( contextmenu #32768 ),如果有一个。

Likely way too late to help but there's a great library available called SharpShell that will allow you to do this exact thing and many other Windows context menu related functions. 可能为时已晚,无法提供帮助,但是有一个名为SharpShell的强大库供您使用,它可以使您执行此操作以及许多其他与Windows上下文菜单相关的功能。 It is just terrific. 太棒了。 The library is available on GitHub and here's a Code Project page where the developer explains how to use SharpShell to do exactly what you're trying to do. 该库可在GitHub上找到 ,这是一个Code Project页面 ,开发人员在其中解释了如何使用SharpShell来完成您要尝试做的事情。

Even if you were/are trying to figure it out for yourself I cannot exaggerate how great of a resource SharpShell source code would be to use as a guide. 即使您正在尝试自己解决问题,我也不能夸张将SharpShell源代码用作指南的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM