![]() |
Adding a button in a mailitem
Sorry if this is the wrong place for this, but there was no apparent group
for Outlook COM addins. I've managed to add a button to the main window in Outlook, but I would like to be able to do the same within a mailitem. The problem is I have no idea how to do this, and so far searching the 'net has not revealed anything useful. Any help in this area would be appreciated. I'm using VB6 for the addin in case this has any impact on how to do this. |
Adding a button in a mailitem
The "main window" is an Explorer. Open items use Inspectors, you would add
your UI to that Inspector just as you would to an Explorer. The Inspectors.NewInspector() event will tell you when a new item is opened. Testing the passed Inspector object in that event handler for Inspector.CurrentItem.Class will tell you what type of Inspector is being opened. One thing to bear in mind is that if this is for Outlook 2007 then a CommandBarButton for an Inspector will be relegated to the Add-Ins tab along with any other old style UI. For Outlook 2007 you should be handling the ribbon to provide UI. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "PatrickS" msdn_newsgroups001@_removetextplusunderscores_seu rre.com. wrote in message ... Sorry if this is the wrong place for this, but there was no apparent group for Outlook COM addins. I've managed to add a button to the main window in Outlook, but I would like to be able to do the same within a mailitem. The problem is I have no idea how to do this, and so far searching the 'net has not revealed anything useful. Any help in this area would be appreciated. I'm using VB6 for the addin in case this has any impact on how to do this. |
All times are GMT +1. The time now is 06:09 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-2006 OutlookBanter.com