Add-In Button Events

N

Nuno Magalhaes

Hello,

I'm working on a add-in project for Microsoft Word and I can't figure
how to get the button events working.

I create a project with Visual Studio .NET using the IDTExtensibility2
interface... I get the application, the documents, and the command bar
buttons.
I create a commandbar with a button but I can't catch the pressing
event (I know that I can use macros with the put_OnAction command but
I would like to catch the events inside my C++ ATL/MFC application).

Any suggestions?
Should I use the IDispEventSimpleImpl and the BEGIN_SINK_MAP?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top