S
sandy91
I'm (trying to) program an addin in C++ (dev studio.net) for Outlook 2000
(and xp and 2003)
How do I catch the event when the user clicks a button within the menu? Is
there a way to DispEventAdvise for the Office::CommandBarControls or the
Office::CommandBarPopup which "owns" the menu items?
My addin has a toolbar, which has a menu (Office::msoControlPopup). I've
filled it with a dynamic number of buttons - that's something I'm going to
read in from a list. I can't inherit from IDispEventSimpleImpl for each menu
item, because I don't know how many buttons at compile time. But, is that
the only way to do it?
I saw an example for a "wrapper class" on outlookcode.com - it sounds like
the right idea for what I'm trying but it's in VB rather than C++.
(and xp and 2003)
How do I catch the event when the user clicks a button within the menu? Is
there a way to DispEventAdvise for the Office::CommandBarControls or the
Office::CommandBarPopup which "owns" the menu items?
My addin has a toolbar, which has a menu (Office::msoControlPopup). I've
filled it with a dynamic number of buttons - that's something I'm going to
read in from a list. I can't inherit from IDispEventSimpleImpl for each menu
item, because I don't know how many buttons at compile time. But, is that
the only way to do it?
I saw an example for a "wrapper class" on outlookcode.com - it sounds like
the right idea for what I'm trying but it's in VB rather than C++.