更改列表控件的列颜色 [英] changing column color of listcontrol

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

问题描述

我在vc ++中有一个问题要在几个listcontrol中显示一些数据.为此,我动态创建了listcontrol并应用了背景色.当我向listcontrol插入值时,它应该提供统一的背景色.我想在列标题中插入数据很好,但是当我们将值插入列标题和文本字段时,它将使用不同的颜色(标题的颜色与文本字段的颜色不同).我必须更改标题列的颜色,以便整个列表控件将具有统一的颜色我该如何更改listcontrol的列颜色.请参阅我是vc ++中的新角色.Plzzzhlp ...

I got a question in vc++ to display some data in several listcontrol.For that I created listcontrol dynamicaly and apply background color.When I insert values to listcontrol it should provide uniform backgroun color.I want to insert data in column header as well.But when we insert value to column header and text fields it will be in different color(color for header is different from color for text field).I have to change the color of header column so that whole listcontrol will be in uniform color.How can i change column color of listcontrol.See i am a new comer in vc++.Plzzz hlp...

推荐答案

尝试使用自定义绘图. http://msdn.microsoft.com/en-us/library/bb761817 (v = vs.85).aspx [ http://msdn.microsoft.com/zh-cn/library/bb158680.aspx [ ^ ]
Try to use custom drawing. http://msdn.microsoft.com/en-us/library/bb761817(v=vs.85).aspx[^]

If custom draw doesn''t help, you can try owner drawing http://msdn.microsoft.com/en-us/library/bb158680.aspx[^]


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

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