Removing buttons from command bar

T

travis

Hello,
I'm wondering how I can get my plugin to remove it's button when it is
uninstalled, as oppose to forcing the user to restore the default command
bar. My program has buttons both in the mail inspectors and in the explorer.
Thanks,
 
D

Dmitry Streblechenko

Create your toolbars and buttons as temporary - there won't be anything to
uninstall.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
T

travis

That sounds like a great idea. Where can I find out how to create them as
temporary?
 
D

Dmitry Streblechenko

Use the Temporary parameter set to True when calling CommandBars.Add and
CommandBar.Controls.Add

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
M

Michael Bauer

On Thu, 4 Aug 2005 09:46:53 -0700 Dmitry Streblechenko wrote:

Expect, if the user disables via Options/COM-Addins. Then the Explorer
buttons would remain until the next OL start.
 
D

Dmitry Streblechenko

True, but if a user has to disable your add-in on a regular basis, something
is *very* wrong :)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
M

Michael Bauer

On Fri, 5 Aug 2005 09:58:06 -0700 Dmitry Streblechenko wrote:

Hmmm - true, too :)
 
Top