如何在clistctrl中添加标题到列 [英] How header to columns are added in clistctrl
本文介绍了如何在clistctrl中添加标题到列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望获得带有纯灰色的标题用于clistctrl
我尝试过:
标题是默认的白色而不是灰色
I want to get Header with solid grey colour for clistctrl
What I have tried:
Header comes in default white colour not grey
推荐答案
这需要使用带有所有者绘图的派生标题控件并将其实例子类化为派生列表控件。
快速搜索clistctrl标题背景颜色,找到了解决方案,以便我不必详细解释: c ++ - 更改MFC列表控件标题颜色 - 堆栈溢出 [ ^ ]。
This requires using a derived header control with owner drawing and subclassing an instance of that in a derived list control.
A quick web search for "clistctrl header background color" found a solution so that I don't have to explain in detail: c++ - Changing MFC List Control header color - Stack Overflow[^].
这篇关于如何在clistctrl中添加标题到列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文