Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
I'm creating a c# application that adds entries in the registry to add items to the windows context menu here's an example of a structure :
HKCR -> * -> shell -> MyApp -> command
Is there a way to get an infotip while I'm hovering MyApp in the Context Menu ?
I added a string value infoTip under MyApp key but it doesn't work.

I was thinking that the menu that pops up when you click on the arrow in (Start -> Shutdown) is a (contextmenu #32768) but i checked its class name and it turns out to be a (toolbarwindow32)
Note : that menu has an infotip for every item (like shutdown, restart... ect) as shown in this picture :

http://s15.postimg.org/nq9t05eh7/Info_Tip.png
Posted
Updated 3-Nov-14 4:51am
v4
Comments
Sergey Alexandrovich Kryukov 3-Nov-14 17:31pm    
This thing is usually called "tooltip". The answer depends on your application type and/or UI library you are using.
—SA
Neokyuubi 4-Nov-14 12:21pm    
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
Sergey Alexandrovich Kryukov 4-Nov-14 14:33pm    
Interesting control you referenced, it looks like. Is it for WPF, Forms, anything else?
(As you consider WM_CONTEXTMENU, I guess you are using System.Windows.Forms. Is that right? You need to indicate the UI library you use.)
—SA
Neokyuubi 6-Nov-14 15:09pm    
Yes, as you guessed I'm using "System.Windows.Forms".
BillWoodruff 7-Nov-14 2:35am    
In Win 8.1 I do not have tool-tips on the Start/ShutDown => press Arrow pop-up Menu.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900