[Word add-in] detect click on the e-mail icon

F

Frenchy

Hello,

I developed an add-in for Word 2003 using the extensibility project in VS
2003 (C#).

I'd like to fire a specific event: when the user clicks on the "e-mail" icon.

In my add-in I check if appWord.ActiveWindow.EnvelopeVisible is set to false
during the Application_DocumentChange event.

Doing this I can ensure that my add-in only works with Word and not Outlook
BUT there's still a problem, I'd like to disable the commandbar of my add-in
when the user clicks on that envelope (called e-mail).

Is there a way to fire that specific event? Or is there a way to simply fire
a mouse click? Then I could check at each mouse click if envelope==true… But
the user could also use the keyboard to access that functionality ïŒ

Any help would be welcome

Thanks
 
E

Eugene E. Starostin

Hello Frenchy,

Try the CommandBars.OnUpdate event. In any case, the Envelope command bar is
visible when your add-in works on Outlook.

Regards from Belarus,
Eugene E. Starostin
 

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