Click here to Skip to main content
15,902,835 members

Comments by Neokyuubi (Top 4 by date)

Neokyuubi 10-Nov-14 13:08pm View    
I gave an example for what i'm trying to do : i want to produce the same result (in the Windows explorer context menu) as when you hover items in the menu from - Start => ShutDown => arrow => Menu (in Windows 7).
What i have done in the registry is just adding an entry called MyApp to the "Windows explorer ContextMenu"

Now i will try to use UI Automation (from the Windows SDK) to get the even that an menu item is hovered. and i will combine it with WM_CONTEXTMENU to know when i have to show/destroy my own window/tooltip.
I know that's a rare case, so if this works i will post the solution or maybe an entire article.
Neokyuubi 6-Nov-14 21:20pm View    
Thank you for taking time to answer, but I'm afraid that is not the subject.
I'm trying to add an infotip to the windows "explorer" context menu while I'm hovering an item that i added through the registry : HKCR -> * -> shell -> MyApp -> command

I saw in the registry that Objects and Folders had a string value REG_SZ called infoTip, so i tried to add the same in my new entry "MyApp" but it does not show anything.

I will continue my research about how to get the hovered item menu in the explorer context menu while it's displayed.
Neokyuubi 6-Nov-14 15:09pm View    
Yes, as you guessed I'm using "System.Windows.Forms".
Neokyuubi 4-Nov-14 12:21pm View    
Well i did not called it tooltip because Microsoft does not consider a Contextmenu as progressive disclosure control

By the way the way that i described the action does not even need doing it from c# just by adding entries in the registry.

I was thinking about an other approach, since i can get : when a Contextmenu is invoked or destroyed by tracking the WM_CONTEXTMENU, and i can get a handler of that Contextmenu.
Maybe if i can extract or get items from that Contextmenu, i would create a new custom window based on the cursor position as a infotip or tooltip