G
Guest
Hi,
I have rather a strange problem that only happens when Word is used as the
editor with the new message window AND when a second new message window is
opened. I am using Outlook 2003.
I am adding a command be to the new message window. When I get a new
inspector event I create a new COM object which will create a command bar for
the new message window. I setup me button events and everything works
perfectly. However if I open a new message window when the original window is
open every thing falls to pieces in the new message window. This ONLY happens
when word is the editor. I have several odd symptoms that maybe someone can
help me diagnose the problem or tell me what I am doing wrong.
First clue is when I open the second new message window (new inspector event
generated) in my COM component I check for the existence of my command bar
and if it exists I setup an advise of the button. If I click on the button
nothing happens. If I set break points in my code the event is not getting
fired for that button even though the advise was setup without errors.
Second clue is when I open the second message window and DO NOT check for
the existence of our command bar and just create the command bar; the command
bar is then created in the first message window. Again this happens even
thought there are two separate instances of the Inspector. This is bazaar I
think.
Again I have verified that each time I open a new message window using Word
that I get a new inspector event and a new mail item. Also this does not
happen when word is not the editor. Everything works great if I do not have
word selected as the preferred editor.
So my question is how do I add command bars to the new message window when
Word is the editor and multiple instances of the new message window are open?
I have tried many experiments and it seems once the second new message window
is open Word only will recognize the first inspector.
I have rather a strange problem that only happens when Word is used as the
editor with the new message window AND when a second new message window is
opened. I am using Outlook 2003.
I am adding a command be to the new message window. When I get a new
inspector event I create a new COM object which will create a command bar for
the new message window. I setup me button events and everything works
perfectly. However if I open a new message window when the original window is
open every thing falls to pieces in the new message window. This ONLY happens
when word is the editor. I have several odd symptoms that maybe someone can
help me diagnose the problem or tell me what I am doing wrong.
First clue is when I open the second new message window (new inspector event
generated) in my COM component I check for the existence of my command bar
and if it exists I setup an advise of the button. If I click on the button
nothing happens. If I set break points in my code the event is not getting
fired for that button even though the advise was setup without errors.
Second clue is when I open the second message window and DO NOT check for
the existence of our command bar and just create the command bar; the command
bar is then created in the first message window. Again this happens even
thought there are two separate instances of the Inspector. This is bazaar I
think.
Again I have verified that each time I open a new message window using Word
that I get a new inspector event and a new mail item. Also this does not
happen when word is not the editor. Everything works great if I do not have
word selected as the preferred editor.
So my question is how do I add command bars to the new message window when
Word is the editor and multiple instances of the new message window are open?
I have tried many experiments and it seems once the second new message window
is open Word only will recognize the first inspector.