Question

I am creating a property sheet shell extension and want to have a little icon to set off my property tab from the standard system tabs. Unfortunately, my icon is being rendered almost entirely in grey.

Original image:

In the property sheet tab:

At first I thought this was somehow my problem, but then I saw that TortoiseSVN appears to have the same problem:

This happens in both Windows 7 and Windows 8.

Does anyone know why these images are appearing so muted? Also, does anyone have any hints on how to make the icon look good in spite of this colorlessness?

Was it helpful?

Solution

The PropertySheet function initialises its tab control with a 16 color (ILC_COLOR) ImageList and copies the supplied icon for each page into it. There doesn't seem to be a way to override this and supply your own ImageList (or to specify the bit depth of the created ImageList). Presumably this is a legacy of the original Windows 95 code that never got updated as things moved on.

OTHER TIPS

Instead of Property Sheets, you can use Tab Control, which makes tabs management more flexible and clear. And of course you can use any type of icons, because you have to create your own ImageList.

Here you can read about Tab Controls:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb760548(v=vs.85).aspx

And here you can access example usage of Tab Controls:

Icons in Win32 Property Pages are ugly - 4 bit icons

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top