Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Get context of context menu (http://www.outlookbanter.com/add-ins-outlook/59123-get-context-context-menu.html)

sublimese October 17th 07 12:17 AM

Get context of context menu
 
I have created an addin that runs in Outlook 2003.
I understand that altering the right-click context menu is not
supported in Outlook 2003.
To alter the context menu I have used the numerous code examples that
hook the CommandBars_OnUpdate event.
Using these examples, I have successfully added items to the context
menu.

My question is, how do you detect WHAT was right clicked on in Outlook
from CommandBars_OnUpdate?
CommandBars_OnUpdate is called if you right click on a folder, an
item, or in the preview pane. From CommandBars_OnUpdate how do you
determine WHAT was clicked on? For a folder or item, how can you get
a reference to the folder or item that was right clicked on?

Thank you very much


Michael Bauer [MVP - Outlook] October 17th 07 06:57 AM

Get context of context menu
 


I don't know how reliable that is, but the only way would be to check the
context menu itself: For instance, the context menu for a folder has other
menu items than the one for one item, which differs again from the one for
two selected items etc.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 16 Oct 2007 15:17:32 -0700 schrieb sublimese:

I have created an addin that runs in Outlook 2003.
I understand that altering the right-click context menu is not
supported in Outlook 2003.
To alter the context menu I have used the numerous code examples that
hook the CommandBars_OnUpdate event.
Using these examples, I have successfully added items to the context
menu.

My question is, how do you detect WHAT was right clicked on in Outlook
from CommandBars_OnUpdate?
CommandBars_OnUpdate is called if you right click on a folder, an
item, or in the preview pane. From CommandBars_OnUpdate how do you
determine WHAT was clicked on? For a folder or item, how can you get
a reference to the folder or item that was right clicked on?

Thank you very much



All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com