PDA

Click to See Complete Forum and Search --> : Need to capture menu clicks in Office apps!!!!


bar
Oct 3rd, 2000, 04:24 AM
Hi,

I need to capture menu clicks in all the office application ie. Edit->Undo, Help etc.

Does anyone have any ideas.

oetje
Oct 3rd, 2000, 08:03 AM
I think you need to subclass.

[Edited by oetje on 10-03-2000 at 09:05 AM]

Serge
Oct 3rd, 2000, 10:14 AM
You're talking about something that doesn't belong to your thread and unfortunately VB cannot subbclass something from other threads. You will have to use C/C++ for that.

bar
Oct 3rd, 2000, 10:24 AM
Do you have any idea where I can get some examples of C/C++ code to do this? Can I write a component for my COM AddIn or do I have to write another AddIn in C?

oetje
Oct 3rd, 2000, 11:50 AM
Originally posted by Serge
You're talking about something that doesn't belong to your thread and unfortunately VB cannot subbclass something from other threads. You will have to use C/C++ for that.

You can use a c++ dll that does the subclassing for you in your vb program. You can get some examples on that here: www.vbaccelerator.com.