CListCtrl中可以显示的字符串的最大大小是多少? [英] What is the max size of string that can be displayed in CListCtrl?

查看:167
本文介绍了CListCtrl中可以显示的字符串的最大大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cchTextMax给出了不同的值。有时它是256,有些时间是260,有时是512 ..

我们可以预测这个回调中返回的大小吗?

cchTextMax in LVN_GETDISPINFO gives different values. Sometimes it is 256, some time 260, and sometimes 512..
Can we predict the size returned in this callback?

推荐答案

文档表示只能显示260个。我会保持肯定的一面,永远不会在控件中存储数据,但只显示它。将其存储在您的数据模型中。



您应该接受并使用它。这种限制不值得投入大量精力。
The documentation says that only 260 can be displayed. I would stay in the sure side and never store data in the control, but only displaying it. Store it in your data model.

You should accept it and work with it. Such limititation arent worth it to invest a lot of effort.


这篇关于CListCtrl中可以显示的字符串的最大大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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