Help!

Adding a button in a mailitem

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  Outlook 2003, how to prevent first run  
Author Message
PatrickS
External


Since: May 17, 2007
Posts: 2



PostPosted: Mon Jun 15, 2009 3:30 am    Post subject: Adding a button in a mailitem
Archived from groups: microsoft>public>outlook>program_vba (more info?)

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.
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Jun 15, 2009 9:38 am    Post subject: Re: Adding a button in a mailitem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 DeleteThis @_removetextplusunderscores_seurre.com.> wrote
in message news:9F3B9D2B-2BB7-4D68-8652-A0F5CCAFBC7E@microsoft.com...
> 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.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum