在ListView控件中更改文本颜色(Win32) [英] Changing the text Colour in a ListView Control ( Win32)
本文介绍了在ListView控件中更改文本颜色(Win32)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用Win32 C ++创建的列表视图控件.
我正在使用ListView_SetItem
添加子项这只是文本和列表视图处于报告模式.我想更改特定子项的文本颜色.我可以这样做吗?如何
谢谢
I have a List View Control that I have created with Win32 C++
I am adding sub items using ListView_SetItem
This just Text and the List View is in Report Mode. I want to change the colour of the text for a particular sub Item . Can I do this? How
Thanks
推荐答案
您需要为此子项目使用owner-draw,以便它使用的字体属性与列表视图的其余部分不同.
You'll need to use owner-draw for this sub item so that it uses different font properties than the rest of the list view.
这篇关于在ListView控件中更改文本颜色(Win32)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文