CTreeCtrl:具有不同颜色的文本||在CTreeCtrl中显示自定义控件 [英] CTreeCtrl: Text with different colors || Display custom control in CTreeCtrl

查看:56
本文介绍了CTreeCtrl:具有不同颜色的文本||在CTreeCtrl中显示自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有一种方法可以在CTreeCtrl中以不同的颜色显示项目的文本.
我是说项目文字的一部分是红色,另一部分是蓝色?

还是可以在CTreeCtrl中嵌入并显示自定义控件?

谢谢.

Hi,

is there a way to display items'' text in CTreeCtrl with different colors.
I mean part of item''s text with red color and other part with blue?

Or is it possible to embed and display custom control in CTreeCtrl?

Thanks.

推荐答案

您可以使用
You can modify the colours of a tree control by using the custom drawing features[^] to adjust the colours and backgrounds. I am not sure if this would allow you to use multiple colours in a single item, but a bit of testing should help figure it out.


这篇关于CTreeCtrl:具有不同颜色的文本||在CTreeCtrl中显示自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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