View Single Post
  #1  
Old October 17th 07, 12:17 AM posted to microsoft.public.outlook.program_addins
sublimese
external usenet poster
 
Posts: 10
Default 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

Ads