Custom Tool bar gets added twice while Composing mail outlook 2k3

C

CoolSanil

Hi All,
I am developing com addin for Outlook 2k3 using ATL/COM. I have written
inspector wrapper class which will wrap inspectors in NewInspector event. In
wrapper class I add new toolbar on Inspector window. I am using Word as a
editor for composing mail. I have successfully handled Word Activate event,
word envelopVisible property also. My toolbar gets added and it is visible
properly while composing only one mail.When i try to compose 2 mails
simultaneously i have noticed that on already opened window(inspector window
which is opened 1st) toolbar gets added two times though i add toolbar per
word document instance.
So my problem is toolbar gets added twice though i add toolbar per word
document instance while composing 2 mails simultaneously.
 
K

Ken Slovak - [MVP - Outlook]

Are you making sure that each control you add has a unique Tag value? All
the toolbars will be there in all instances of WordMail, you must scan the
CommandBars collection and disable any that aren't related to that specific
instance of the WordMail window. For example with 3 Inspectors opened you'd
be disabling 2 of the 3 toolbars and enabling one of them.
 

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