Link to home
Start Free TrialLog in
Avatar of ZorroWinter
ZorroWinter

asked on

Displaying TabControl Tab Images with XP Themes

Hi, I'm using a plain TablControl with Win32, using XP Themes. I'm placing 16x16 icon images in the tab title of the control pages (not using owner draw - just using the API). It appears that the tab control changes the color/transparency of the image, rather than just using the transparency of the icon supplied. So, then the title has a gradient fill, lighter images become mostly transparent, whereas dark images seem to work better almost as well as when I'm drawing them in another window myself. Is anyone aware of an option to allow the images to be displayed properly? (Note: I'm actually using the Win32 API, rather than MFC, but this seemed like the nearest forum).
Avatar of mahesh1402
mahesh1402
Flag of India image

Avatar of ZorroWinter
ZorroWinter

ASKER

OK, the first example uses bitmaps without XP Themes. I have already been able to get this working using plain bitmaps and an image list. The second relates to XP Themes failing to draw tab controls properly - I don't need to swap the orientation of the tab controls.
 
I need to understand why the image list with 16x16 icons don't seem to paint properly using XP Themes (which have gradient fills underneath the icons, so I can't use a bitmap).
The answer is: we needed to set the IlcColor32 flag explicitly on the image list, when it was first created. Otherwise, it seems to mess with the images set into the controls.
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial