Adding Image to "new email window" in Office 2007

  • Thread starter KarthikonIT via OfficeKB.com
  • Start date
K

KarthikonIT via OfficeKB.com

Hi,
I m Creating a plugin for MS Outlook.

I have added Button to New email window(ie. the window that
is opened when an email is double clicked)

But when i tried add an Image to this Button is not showing up..

Adding Image:

1. Filling up the "PICTDESC" struct with appropriate bmp details

2. Obtained "IPictureDispPtr" by passing ""PICTDESC"
OleCreatePictureIndirect API.

3. Office::_CommandBarButtonPtr->PutPicture, then Office::
_CommandBarButtonPtr->PutPicture


This technique works great for adding images to buttons in Explorer & New
email window(ie. the window that
is opened when an email is double clicked) in 2003 and in Explorer window for
2007.


Ques:
Is not possible to add image to the button in New email window in 2007.

If yes what needs to be done..
Thanks in Advance.
 
K

Ken Slovak - [MVP - Outlook]

First of all, that won't work for WordMail in Outlook 2003 or earlier since
a WordMail window is out of process to Outlook, and you can't pass
IPictureDisp objects across process boundaries.

In Outlook 2007 Inspectors use the ribbon, you will need to supply ribbon
XML for a ribbon button image.
 
D

Dmitry Streblechenko

In Outlook 2007 (and 2010) you need to use the new Ribbon API to add a
button to an inspector (and explorer in 2010).

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top