如何在CListCtrl中更改颜色 [英] How to change color in CListCtrl

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

问题描述

大家好,
我已阅读以上文章,但无法解决我的问题
我有一个CListCtrl,我想在其中更改特定块(行|列)上的颜色,而不是整个行或整个列上的颜色.
我也想在设置SetItemText(..)行之后立即执行此操作(这意味着我需要动态更改颜色.
感谢

Hello all,
i have read the above article and couldn''t solve my problem
i have a CListCtrl where i would like to change the color on a specific block (row|column) and not to the entire row or the entire column.
also i want to do it right after i make my SetItemText(..) line (what i mean is that i need to change color dynamicaly.
thanks

推荐答案

您似乎想向与他/她的文章有关的作者问这个问题.

我建议您使用本文结尾处的论坛,以联系作者并快速获得答复.很少会发现作者正在阅读此论坛.

请在文章的消息论坛上发布相同的内容.
It looks like you want to ask this question to an author related to his/her article.

I would suggest you to please use the forum present at the end of the article in order to reach author and get quick response. Rarely you will find authors reading this forum.

Please post the same at the article''s message forum.


您将必须处理OnPaint事件,并将控件设置为所有者绘制" .使用google查找示例应该很简单.
You''re going to have to handle the OnPaint event, and set the control to be "owner-drawn". It should be a simple matter to find examples using google.


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

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