> If your code runs and adds the button to the
> Inspectors.CommandBars.Item("Standard") toolbar you should receive the Click
> event in your Outlook code. I just add a button as usual whether it's
> WordMail or not.
>
> There are other things to account for with WordMail, such as the buttons
> being in the Normal.dot template or wherever your CustomizationContext is
> and when to hide and show the buttons, but the click event should fire
> within your Outlook addin code.
>
> If WordMail is running (Inspector.IsWordmail = True) then
> Inspector.WordEditor is the Word Document object. WordEditor.Application is
> Word.Application and WordEditor.ActiveWindow is your Word window. I already
> mentioned how to figure out when to show or hide your buttons
> (Window.EnvelopeVisible = True means WordMail is showing). Setting
> CustomizationContext.Saved = True after adding or deleting your buttons will
> prevent dialogs asking the user to save Normal.dot changes. You must
> explicitly delete any WordMail buttons you add as Word does not honor the
> Temporary = True argument. So you delete all your buttons when the Inspector
> is closing.
>
> Other than those things buttons in WordMail or the Outlook email editor are
> the same.
>
> --
> Ken Slovak
> [MVP - Outlook]
>
http://www.slovaktech.com> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
>
http://www.slovaktech.com/products.htm>
>
> "Yuri Loban" <YuriLoban[ at ]discussions.microsoft.com> wrote in message
> news:82862DB0-3D63-4B90-9866-E128BB3E639E[ at ]microsoft.com...
> > Thanks for your advise. But, one problem is still here: I've used
> > commandBar,
> > as you recomended, and it appears in both Outlook and Word application
> > (?).
> > And unfortunately, my notification event for button in commandBar is
> > attached
> > in Word application, not in Outlook. What could you guess?
>
>