toolbar visible state change event

  • Thread starter Thread starter Saeed
  • Start date Start date
S

Saeed

I have added a toolbar with few buttons to Explorer and Inspector. I want the
toolbar to be visible across all open inspector and explorer at the same
time, and if user make toolbar not visible using one of the open windows, all
the toolbars should become not visible. Is there any event generated when
user un-checks a toolbar which I can use for updating all open windows.
I am using VSTO 2005 SE and writing addins for 2003 and 2007 outlook.
 
For one thing, in Outlook 2007 you have the ribbon and any old style UI is
added to the Add-Ins tab, so you won't get what you expect at all in Outlook
2007 for Inspectors.

The only possible event you could use is CommandBars.OnUpdate(). You can
check for visibility of your CommandBar there. Be aware though that this
event fires an awful lot, so be prepared to see it firing all the time for
all sorts of updates.
 
Back
Top