PC Review


Reply
Thread Tools Rate Thread

CommandBar button events

 
 
Stee
Guest
Posts: n/a
 
      7th Jan 2004
Hi,
I am creating a Menu and a toolbar button which will do
exactly same thing. To capture this event in my add-in,
should I create two events like below? Is it not possible
to have one event getting fired for both the menu and
toolbar clicks? Any suggestions?

typedef IDispEventSimpleImpl</*nID =*/ 3,CAddin, &__uuidof
(Office::_CommandBarButtonEvents)> CommandMenuEvents;

typedef IDispEventSimpleImpl</*nID =*/ 2,CAddin, &__uuidof
(Office::_CommandBarButtonEvents)> CommandButton2Events;

.....

SINK_ENTRY_INFO(2, __uuidof
(Office::_CommandBarButtonEvents),/*dispid*/ 0x01,
OnClickButton, &OnClickButtonInfo)
SINK_ENTRY_INFO(3, __uuidof
(Office::_CommandBarButtonEvents),/*dispid*/ 0x01,
OnClickMenu, &OnClickButtonInfo)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable CommandBar Buttons Based on Events M. Authement Microsoft Excel Programming 11 19th Oct 2006 02:46 AM
Office 97 override commandbar /menubar events Nick Microsoft Excel Programming 0 8th Feb 2006 12:55 PM
Commandbar events in COM Add-in DLL news.microsoft.com Microsoft Powerpoint 0 26th Mar 2004 07:11 PM
CommandBar Button parameters Bill D. Microsoft Excel Programming 3 26th Mar 2004 06:13 PM
Add an image to a commandbar button Marc Microsoft Outlook Program Addins 3 27th Nov 2003 09:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.