G
Guest
hello world,
there has been a similar question back in 2004 - with no solution, yet:
http://groups.google.com/group/micr...addins/browse_thread/thread/29f3995045b77b4b/
i'm working on an ECE (exchange client extension) for outlook which
adds a couple of 16x16 buttons to the outlook toolbar. i'm using VC++
and MAPI.
these buttons have a 16 colour bitmap displayed. the purple color
RGB(255,0,255) in the bitmaps is the transparent color when outlook
runs.
i want to change the button bitmaps to be 256 color (8bpp). when i do
this i
cannot get transparency to work like it does with the 16 color bitmaps.
the purple shows up. is there any way i can get a color to be
transparent?
below is the code used to add the button to the toolbar. i am using
outlook XP, but have the same thing happen with outlook 2003.
TBADDBITMAP tbab;
tbab.hInst = AfxGetInstanceHandle();
tbab.nID = uiBitmapID;
*puiToolBarM = SendMessage(hwndToolbar, TB_ADDBITMAP, 1,
(LPARAM)&tbab);
1) one solution might be to make use of the OOM (outlook object model)
to place and paint toolbar buttons. but i'd rather prefer not to add
OOM code to my ECE.
2) i found some advice to use TB_SETIMAGELIST instead of TB_ADDBITMAP.
but i couldn't get it work from within the ECE's InstallCommands via
SendMessage.
any help greatly appreciated.
kind regards, gustafson
some more keywords: ImageList_AddMasked TB_ADDBITMAP TB_ADDBUTTONS
TB_SETIMAGELIST toolbar loadbitmap loadimage ImageList_Create
ImageList_Add IExchExt LR_CREATEDIBSECTION COLORREF IExchExtCommands
LPEXCHEXTCALLBACK EETBID_STANDARD button icon *.bmp resource png
there has been a similar question back in 2004 - with no solution, yet:
http://groups.google.com/group/micr...addins/browse_thread/thread/29f3995045b77b4b/
i'm working on an ECE (exchange client extension) for outlook which
adds a couple of 16x16 buttons to the outlook toolbar. i'm using VC++
and MAPI.
these buttons have a 16 colour bitmap displayed. the purple color
RGB(255,0,255) in the bitmaps is the transparent color when outlook
runs.
i want to change the button bitmaps to be 256 color (8bpp). when i do
this i
cannot get transparency to work like it does with the 16 color bitmaps.
the purple shows up. is there any way i can get a color to be
transparent?
below is the code used to add the button to the toolbar. i am using
outlook XP, but have the same thing happen with outlook 2003.
TBADDBITMAP tbab;
tbab.hInst = AfxGetInstanceHandle();
tbab.nID = uiBitmapID;
*puiToolBarM = SendMessage(hwndToolbar, TB_ADDBITMAP, 1,
(LPARAM)&tbab);
1) one solution might be to make use of the OOM (outlook object model)
to place and paint toolbar buttons. but i'd rather prefer not to add
OOM code to my ECE.
2) i found some advice to use TB_SETIMAGELIST instead of TB_ADDBITMAP.
but i couldn't get it work from within the ECE's InstallCommands via
SendMessage.
any help greatly appreciated.
kind regards, gustafson
some more keywords: ImageList_AddMasked TB_ADDBITMAP TB_ADDBUTTONS
TB_SETIMAGELIST toolbar loadbitmap loadimage ImageList_Create
ImageList_Add IExchExt LR_CREATEDIBSECTION COLORREF IExchExtCommands
LPEXCHEXTCALLBACK EETBID_STANDARD button icon *.bmp resource png