I have a COM add-in I am developing which creates a custom CommandBar
in Outlook (2000-2007) that resides on explorer windows. It is all
working OK, except for its behaviour when multiple explorers are open...
The same CommandBar needs to be present on all explorers, and its
position persistent across Outlook sessions. I decided not to create a
tem****ary commandbar and recreate it each time, as this causes problems
with position persistence. The commandbar is permanent, as are each of
its controls. There are a number of msoControlButton controls and a
couple of msoControlPopup controls (each of which contains a small
number of msoControlButtons).
When the first Outlook explorer is opened the toolbar appears and
functions perfectly well. When a second explorer is opened (by
selecting "Open in new window" for a mailbox folder), the toolbar
displays OK in the new explorer, and all buttons work as expected
except th msoControlPopup controls: when clicking them no menu pops up,
and so the user can't get at the commands there.
Strangely, most of the time closing the secondary explorer and then
opening an explorer on a different folder causes all to work properly,
inclusing the msoControlPopup controls. Then, all subsequent explorers
opened ar also fine.
Can anyone suggest where I might focus on to track this behaviour down?
--
Regards,
Steve.


|