![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
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 |