如何插入彩色文本INT一个ListView? [英] How to insert colored text int a ListView?

查看:109
本文介绍了如何插入彩色文本INT一个ListView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3 coloumns列表视图。前两列具有值和第三个是空的。我想知道,我怎么能后插入彩色文本到第三列?我不想要的颜色的全部行中,仅与颜色改变第三列

I have a listview with 3 coloumns. The first two columns has values and the third one is empty yet. I want to know, how can i insert a colored text later into the third column? I don't want to color the full row, only the third column with changing colors.

在此先感谢!

kampi

推荐答案

@Richard哈里森在使用正确的想法 NM_CUSTOMDRAW

@Richard Harrison has the right idea in using NM_CUSTOMDRAW.

而不是重新实现所需的功能,虽然你应该考虑使用免费的CListView中派生类型之一。

Rather than re-implementing the needed functionality though you should consider using one of the freely available CListView derived types.

这里是一个项目,我认为会满足您的需求。

Here is a project that I think will meet your needs.

这篇关于如何插入彩色文本INT一个ListView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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