在MFC中隐藏ListControl的列标题 [英] Hiding column header of listcontrol in mfc

查看:204
本文介绍了在MFC中隐藏ListControl的列标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的对话框中有一个使用报表视图的列表控件对象.它有
只有一列,没有标题文本.标头显示
没有文字,当然,但我想将其隐藏.我该怎么办?
我的listcontrol是动态创建的.那么如何隐藏它? 但是无法隐藏单列的标题.这是我从您的qstn中了解到的.这也没有任何意义.
隐藏列表控件标头,您可以编写以下代码.

CHeaderCtrl* pHdr = m_ListCtrl.GetHeaderCtrl();
pHdr->ShowWindow(SW_HIDE);


Hi,
I have a list control object using the Report view, in my dialog. It has
only a single column with no header text. The header gets displayed
with no text, of course, but I would like to hide it. How do I do this?
My listcontrol is created by dynamically.So how can i hide it?

解决方案

You can hide the header of a list control.
But it is not possible to hide the header of a single column.That is what i understand from your qstn.also it doesnt make any sense.
to hide the list control header u can code as below.

CHeaderCtrl* pHdr = m_ListCtrl.GetHeaderCtrl();
pHdr->ShowWindow(SW_HIDE);


这篇关于在MFC中隐藏ListControl的列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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