Command buttons when using word as email button

  • Thread starter Thread starter tommy_bergstrand
  • Start date Start date
T

tommy_bergstrand

I have a addin where I add a new send button which stores the mail in
another system besides sending it.

When I don't use Word as editor I can keep track of which inspector
that should handle a button event by using the really good approach
with wrappers found in

http://www.slovaktech.com/code_samples.htm#InspectorWrapper

But I haven't found a solution that works when I switch to use word as
editor.

Anyone who has a solution to this? Using Outlook 2002 and 2003.

Best regards
Tommy
 
Use the Word object model in your Inspector wrapper to handle
Word.WindowActivate. That fires when your WordMail window is active. If you
have created unique Tag properties for each button you can then use the Key
property in the wrapper class to see if the button has a Tag that ends in
the Key value and starts with your unique Tag string.
 
Back
Top