A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Adding Image to "new email window" in Office 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 2nd 09, 02:11 PM posted to microsoft.public.outlook.program_addins
KarthikonIT via OfficeKB.com
external usenet poster
 
Posts: 14
Default Adding Image to "new email window" in Office 2007

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.

--
Message posted via http://www.officekb.com

  #2  
Old November 2nd 09, 02:33 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Adding Image to "new email window" in Office 2007

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.

--
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


"KarthikonIT via OfficeKB.com" u54961@uwe wrote in message
news:9e840a02e6b77@uwe...
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.

--
Message posted via http://www.officekb.com


  #3  
Old November 4th 09, 10:14 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Adding Image to "new email window" in Office 2007

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
-
"KarthikonIT via OfficeKB.com" u54961@uwe wrote in message
news:9e840a02e6b77@uwe...
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.

--
Message posted via http://www.officekb.com



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize "Select Names" window when sending email (Outlook 2007) MamaSherry Outlook - Using Contacts 2 December 15th 08 09:18 PM
Delegate problem-boss gets some "read" & "out of office" response Weezee Outlook - Calandaring 0 October 15th 08 08:33 PM
URL link in an email should "Open in New Window" Rich Outlook and VBA 0 November 15th 07 04:59 PM
Enlarge attachment "window" in incoming email? CWLee Outlook Express 8 January 28th 07 09:06 PM
Need help adding a "placeholder" email address for Sharepoint Mike Bailey Outlook - Using Contacts 1 January 10th 06 01:35 PM


All times are GMT +1. The time now is 12:35 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-2025 Outlook Banter.
The comments are property of their posters.