Handle WindowActivate events in Word object model code in both addins. Test
for wn.EnvelopeVisible = True. That means a WordMail window, False means a
Word.Document window.
You can iterate the CommandBars collections and set your Enabled and Visible
properties as desired. I usually disable the custom Word toolbars in
WordMail and vice versa.
You also have to handle cases where more than one WordMail Inspector and/or
more than one Document are open at a time so multiple copies of toolbars
aren't visible.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Hichem S" wrote in message
...
Hi,
When launching an Outlook application that is configured to use WordMail
as
the default mail editor, a Word process is started in background. This
word
process will load my word addin that creates a toolbar and a popupmenubar.
Unfortunately when I then open word (after opening Outlook as previously
described), my toolbar is invisible while the popupmenu bar is visible.
Can anybody explain to me what happens? Why Outlook hides the word
toolbars?
and what can be done other than making the toolbar visible in the
WindowActivate event of Word. Note that this solution is not satisfying
since
we force the visibility of the toolbar to true, while the user might wants
to
hide it!!
I really don't want Outlook to hide the Word toolbar 
Thanks you very much for the answer...
Hichem