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

前端 未结 2 1076
自闭症患者
自闭症患者 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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题