How do I know whether my Outlook toolbar should be visible?

S

Sterling Wight

I have a COM toolbar addin for Outlook that does a decent job of things like
saving its position. However, every time Outlook is launched, the toolbar
becomes visible, even if the user hid the toolbar (via View->Toolbars) the
last time they ran Outllook. How can I notice that the user has
selected/deselected by toolbar in View->Toolbars so that I can retain state
information and do the right thing on launch?
 
K

Ken Slovak - [MVP - Outlook]

I suppose you could check the Visible property of the toolbar on each
Explorer or Inspector Close event, depending on where the toolbar is
created.
 
S

Sterling Wight

Thanks Ken, that did the trick.

Its a pity that you don't get informed in any way when you are made visible.
It takes some time to build my toolbar (it has a lot of bitmaps), and it
would be better to delay it until the user really requests it. But at least
this way I respect the user's request to hide the toolbar.
 
P

Paul Qualls

Sterling Wight said:
Thanks Ken, that did the trick.

Its a pity that you don't get informed in any way when you are made
visible. It takes some time to build my toolbar (it has a lot of bitmaps),
and it would be better to delay it until the user really requests it. But
at least this way I respect the user's request to hide the toolbar.

Have you ever considered building it in another thread? This is super easy
and "gives back" the UI to the user.

Paul
 

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