Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / December 2003

Tip: Looking for answers? Try searching our database.

Icon for an Outlook addin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric Indiran - 24 Dec 2003 19:41 GMT
I'm writing an addin for Outlook in C++. I'd like to specify an icon to be
displayed on the toolbar button. How is this done?

Microsoft.Office.Core.CommandBarControl does not appear to have a property
to set the icon.

Thanks much,
-Eric
Eric Indiran - 25 Dec 2003 07:50 GMT
I was able to use the "PasteFace" method against a CommandBarButton to get
this to work.

Feels like a hack not to have a method that takes a HBITMAP directly and
instead rely on the system's clipboard to pass the image to a button...

-Eric

> I'm writing an addin for Outlook in C++. I'd like to specify an icon to be
> displayed on the toolbar button. How is this done?
[quoted text clipped - 4 lines]
> Thanks much,
> -Eric
Dmitry Streblechenko - 28 Dec 2003 17:42 GMT
In Outlook versions prior to 2002, copy the bitmap to the clipboard, then
call CommandBarButton.PasteFace.
In Outlook 2002 and up, use CommandBarButton.Picture and
CommandBarButton.Mask properties.

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

> I was able to use the "PasteFace" method against a CommandBarButton to get
> this to work.
[quoted text clipped - 12 lines]
> > Thanks much,
> > -Eric
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.