You can set a Boolean flag after you create your button UI the first time
and check that flag before trying to create the UI so you only do it once.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"KarthikonIT via OfficeKB.com" u54961@uwe wrote in message
news:9eaa0e08eaae5@uwe...
Hi,
I m Creating a Plugin for MS OUtlook, I a few questions
I have added Button to New email window(ie. the window that is opened when
an
email is double clicked), but multiple times buttons are
added since "Active Event" of Inspector is called again & again.
How do I prevent multiple buttons from adding up in the "New email
window"?
Note:
I have assigned unique tags to the command bar buttons so that event are
not
fired multiple times.
Brief description of my architecut
I have a class called "INspector wrapper" which implements the "Outlook::
InspectorEvents"
for every new email a new Instance of this class will be created.
I have a class called "BtnWrapper" which implments the "Office::
_CommandBarButtonEvents"
for every button created a new Instance of this class will be created.
I m adding the button in the "Active" event of Inspector.
Thanks in Advance.
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200911/1