![]() |
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
|
|||
|
|||
![]()
Hello,
Thanks for reviewing my question. I am just starting out and so I am not sure if this is possible but I would like to know if you can add to an existing context-sensitive menu. When you are in Outlook and have your list of emails in front of you, you can right click on an email and menu (Open, Print, Reply, Forward, etc.) is displayed. I would like to know if its possible to add my own menu item to this menu? And of course if true, how do you go about doing this? Many Thanks Peter |
#2
|
|||
|
|||
![]()
It's possible as a hack that mostly works (it's supported fully in Outlook
2007), but the hack doesn't tell you what was right-clicked on. You can use Explorer.Selection to tell what was selected in the view but that may not be the same as the item the user right-clicked on. See http://www.outlookcode.com/codedetail.aspx?id=526 for an example. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Peter" wrote in message ... Hello, Thanks for reviewing my question. I am just starting out and so I am not sure if this is possible but I would like to know if you can add to an existing context-sensitive menu. When you are in Outlook and have your list of emails in front of you, you can right click on an email and menu (Open, Print, Reply, Forward, etc.) is displayed. I would like to know if its possible to add my own menu item to this menu? And of course if true, how do you go about doing this? Many Thanks Peter |
#3
|
|||
|
|||
![]()
Ken,
Thanks for the helpfull info. (it's supported fully in Outlook 2007), I am actually trying out the Outlook 2007. Where can I find out on how to do it in Outlook 2007? Thanks Peter "Ken Slovak - [MVP - Outlook]" wrote: It's possible as a hack that mostly works (it's supported fully in Outlook 2007), but the hack doesn't tell you what was right-clicked on. You can use Explorer.Selection to tell what was selected in the view but that may not be the same as the item the user right-clicked on. See http://www.outlookcode.com/codedetail.aspx?id=526 for an example. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Peter" wrote in message ... Hello, Thanks for reviewing my question. I am just starting out and so I am not sure if this is possible but I would like to know if you can add to an existing context-sensitive menu. When you are in Outlook and have your list of emails in front of you, you can right click on an email and menu (Open, Print, Reply, Forward, etc.) is displayed. I would like to know if its possible to add my own menu item to this menu? And of course if true, how do you go about doing this? Many Thanks Peter |
#4
|
|||
|
|||
![]()
Trap the Application.OnItemContextMenuDisplay. In your implementation of the
OnItemContextMenuDisplay event handler, add your button to the command bar passed in the CmdBar parameter. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Peter" wrote in message ... Ken, Thanks for the helpfull info. (it's supported fully in Outlook 2007), I am actually trying out the Outlook 2007. Where can I find out on how to do it in Outlook 2007? Thanks Peter "Ken Slovak - [MVP - Outlook]" wrote: It's possible as a hack that mostly works (it's supported fully in Outlook 2007), but the hack doesn't tell you what was right-clicked on. You can use Explorer.Selection to tell what was selected in the view but that may not be the same as the item the user right-clicked on. See http://www.outlookcode.com/codedetail.aspx?id=526 for an example. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Peter" wrote in message ... Hello, Thanks for reviewing my question. I am just starting out and so I am not sure if this is possible but I would like to know if you can add to an existing context-sensitive menu. When you are in Outlook and have your list of emails in front of you, you can right click on an email and menu (Open, Print, Reply, Forward, etc.) is displayed. I would like to know if its possible to add my own menu item to this menu? And of course if true, how do you go about doing this? Many Thanks Peter |
#5
|
|||
|
|||
![]()
And whatever was right-clicked or the selection that was right-clicked will
be in the Selection collection passed in that event. All context menus share the ContextMenuClose event, so you also know when the context menu is closing. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Dmitry Streblechenko" wrote in message ... Trap the Application.OnItemContextMenuDisplay. In your implementation of the OnItemContextMenuDisplay event handler, add your button to the command bar passed in the CmdBar parameter. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2000 is crashing while adding right click context menu. | Vinayakc | Add-ins for Outlook | 0 | August 17th 06 05:08 PM |
outlook menu view/current view is gray | pauls | Outlook - Using Contacts | 0 | August 16th 06 08:16 PM |
Edit a Menu | Shauna T | Outlook - General Queries | 1 | May 4th 06 12:36 PM |
adding a context menu in Outlook | donald | Add-ins for Outlook | 6 | May 3rd 06 02:49 PM |
Adding Outlook Express to my start menu | MP Boettger | Outlook - General Queries | 1 | February 22nd 06 06:45 PM |