mickn66
Well-known member
- Joined
- Nov 2, 2002
- Messages
- 53
Im trying to write a program that adds a menuitem to the contextmenu of any textboxes in any windows program. The menuitm Im talking about has a submenu with a number of choices, each choice does a different thing - but what each choice does is not important for this question. I know I can create a system-wide mouse hook to catch right-clicks on any application on the system - but once Ive done that, I want to display whatever contextmenu the application in question uses for text boxes, but with my added item as well. Is this possible? How can I do it? I know how to do the hook part of it so I dont need that explained to me - although, if its possible to do it without the mouse hook, that would probably be even better.
I would prefer doing it with .NET - I know a system-wide hook requires unmanaged code, thats no problem, Ill write that part in c++. I would prefer to write the rest of it in VB.net or c#.net.
Thanks
I would prefer doing it with .NET - I know a system-wide hook requires unmanaged code, thats no problem, Ill write that part in c++. I would prefer to write the rest of it in VB.net or c#.net.
Thanks