How to add a menuitem to any textbox-contextmenu for all applications

mickn66
06-02-2005, 01:01 PM
I'm trying to write a program that adds a menuitem to the contextmenu of any textboxes in any windows program. The menuitm I'm 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 I've 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 don't need that explained to me - although, if it's possible to do it without the mouse hook, that would probably be even better.

I'd like to do this with visual basic, but i can use c++ when necessary. For instance, the system-wide hook part.

By the way, if this should have been posted in another forum, please let me know which one - this one seemed the most appropriate. Thanks.

Mick

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum