CListCtrl控件无法正确显示标题 [英] CListCtrl control does not display header properly

查看:68
本文介绍了CListCtrl控件无法正确显示标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在MFC中创建了示例对话框应用程序.
在对话框中,将显示一个带有1000列的列表控件.
标头绘制不正确.
CListCtrl的标题有任何问题吗?

I have created sample dialog application in MFC.
Inside dialog a list control is displayed with 1000 column.
The header is not drawn properly.
Is there any problem with the header of CListCtrl?

推荐答案

我同意Joan Murt的评论. 1000列是不合理的.即使它可以正常工作并正确显示,您是否真的认为用户可以阅读?

尝试使用几列(假设为10)来查看问题是否仍然存在.
-如果不行,则考虑一次只显示几列.
-如果即使只有几列,问题仍然存在,则您的代码中有问题.在这种情况下,您应该发布一些代码以便我们对其进行分析.
I agree with Joan Murt''s comment. 1000 columns is not reasonnable. Even though it would work and display properly, do you really think the user can read that?

Try with a few columns (let''s say 10) to see if your problem persists.
- If it doesn''t, then consider displaying just a few columns at a time.
- If the problem persists even with a few columns, then you have a problem in your code. In that case you should post some code so we can analyse it.


这篇关于CListCtrl控件无法正确显示标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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