I'm trying to add a bitmap (24-bit) to my tool window with SetTabPicture in Visual Studio 2005. However no matter what I do the image I get is converted to 16 color using the system palette. I tried passing the HBITMAP as a VT_INT variant, I tried LoadBitmap and LoadImage with different options, I tried creating a IPictureDisp first, all with the same result. When I use the same bitmap as a menu or toolbar image it shows up in full color.
I also tried the CPPToolWindow sample, and it has the same problem. The source image is 256 color, but the one I see at runtime is 16 color.
Any ideas
BTW, according to the docs the background must be (0,255,0) green, but I found that this doesn't work. Either of this works fine - (0,254,0) green or (255,0,255) purple. The CPPToolWindow sample itself uses purple background.
Ivo
P.S. I'm running Visual Studio 2005 on Windows 2000