Displaying TabControl Tab Images with XP Themes

Posted on 2006-05-04
Last Modified: 2013-11-20
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).
Question by:ZorroWinter
    LVL 22

    Expert Comment


    Author Comment

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

    Author Comment

    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.
    LVL 5

    Accepted Solution

    Closed, 125 points refunded.
    Site Admin

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
    Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now