Get context of context menu

  • Thread starter Thread starter sublimese
  • Start date Start date
S

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
 
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:
 
Back
Top