CListControl标头的颜色更改 [英] Color change for the CListControl Header

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

问题描述

亲爱的所有人,

可以帮我更改CListControl标头的颜色吗?

谢谢
sudhir

Dear All,

Can any on help me to change the color for the CListControl Header??

Thanks
sudhir

推荐答案

对于其他控件,可以使用WM_CTLCOLOR通知来完成.但是据我所知,这不能与CHeaderCtrlCListCtrl一起使用.

然后,您必须使用所有者绘制的标题控件(请参见CHeaderCtrl::DrawItem() [ ^ ])并使用子类.
With other controls this can be done using the WM_CTLCOLOR notification. But as far as I know, this can''t be used with CHeaderCtrl and CListCtrl.

Then you must use an owner drawn header control (see CHeaderCtrl::DrawItem() [^]) and use sub-classing.


尊敬的Arndt,

我实现了相同的操作,但是当我们单击标题时,标题索引覆盖在标签上,这使我可以看到旧标题.

如何为CListcontrol标头填充颜色...?

谢谢
sudhir
Dear Arndt,

i have implemented the same thing but Header index covered on label when we click on the header it was allowing me to see the old header.

how to fill the color for the CListcontrol Header...?

Thanks
sudhir


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

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