树控件给每一项添加图标后怪问题。

来源:互联网 发布:三棱手刺 淘宝 编辑:程序博客网 时间:2024/06/10 05:48

图标明明不是黑色背景,可程序运行后图标的背景色全变成黑色了。

 

最后在imagelist Create的时候加了个ILC_MASK,终于解决……

 

 

ILC_MASK 解释

 

Uses a mask. The image list contains two bitmaps, one of which is a monochrome bitmap used as a mask. If this value is not included, the image list contains only one bitmap.

 

 

原创粉丝点击