how to connect my add-ins button with built in menu

how to connect my add-ins button with built in menu

Post by S2ltLCBLaV » Sat, 04 Mar 2006 18:19:28


Hi ,

My Outlook add-ins has 2 buttons. (using ATL)
I'm trying to find one of my button clicked then pop up Options page
(Outlook's menu Tools->Options)

Does any body know about that ?
 
 
 

how to connect my add-ins button with built in menu

Post by Ken Slovak » Sat, 04 Mar 2006 22:55:07

The event that fires when Tools, Options is clicked is
NameSpace.OptionsPagesAdd. When that event fires you can reference your OCX
for that property page.

To force that to happen you have to iterate the Controls collection of the
"Menu Bar" CommandBar, find Tools, and iterate the Controls of that
CommandBarPopup until you hit Options and then call .Execute on that
CommandBarButton.

Once you have the ID values for those controls you can code them into your
code directly.

--
Ken Slovak
[MVP - Outlook]
http://www.yqcomputer.com/
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.yqcomputer.com/

 
 
 

how to connect my add-ins button with built in menu

Post by S2ltLCBLaV » Thu, 09 Mar 2006 11:16:27

Thank you very much Mr. Ken slovak
Your reply was very helpful