A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Get context of context menu



 
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old October 17th 07, 06:57 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Right-click context menu doesn't show any more? sherifffruitfly Outlook - General Queries 4 March 30th 07 06:38 AM
OL2003 context menu fix [email protected] Outlook - General Queries 0 March 23rd 07 07:45 PM
Context menu in task pane Bickers Add-ins for Outlook 0 February 14th 07 04:31 PM
adding a context menu in Outlook donald Add-ins for Outlook 6 May 3rd 06 02:49 PM
Context Menu not present Mono Outlook Express 5 February 7th 06 07:22 PM


All times are GMT +1. The time now is 09:56 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.