Why are icons in property sheets rendered with so few colors?

前端 未结 2 1059
自闭症患者
自闭症患者 2021-01-13 19:25

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 rend

相关标签:
2条回答
  • 2021-01-13 19:53

    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.

    0 讨论(0)
  • 2021-01-13 20:15

    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

    0 讨论(0)
提交回复
热议问题