在MFC中更改ListControl的颜色 [英] Change color of ListControl in MFC

查看:1122
本文介绍了在MFC中更改ListControl的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ListControl
Col1 Col2

Item1 Item2
Item3 Item4
Item5 Item6

我希望每一行都有单独的颜色.第一行color1,第二行color2,依此类推.否则我想要Item1 color1 Item2 color2,依此类推.

谢谢.

I have a ListControl
Col1 Col2

Item1 Item2
Item3 Item4
Item5 Item6

I want each row to have a separate color. 1st row color1, 2nd row color2 and so on. Or else I want Item1 color1 Item2 color2 and so on.

Thank you.

推荐答案

请参阅此处的CP以获得一些想法;
ListView交替行颜色(使用Windows API) [
See this article here on CP for some ideas;
ListView Alternating Row Colours (Using Windows API)[^]


这篇关于在MFC中更改ListControl的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆