ctreectrl MAX可见字符串长度 [英] ctreectrl MAX visible string length

查看:155
本文介绍了ctreectrl MAX可见字符串长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将大量文本数据输出到MFC树控件的应用程序。当我用长字符串(大于1000+字符)调用SetItemText()时,控件中只显示前250个字符。

MFC树控件是否有MAX可见的字符串长度?

有没有办法增加可见限制?

解决方案

来自 pszText的文本 TVITEM结构 [ ^ ]声明:

Quote: TVITEM结构 [ ^ ]

请注意,虽然树视图控件允许将任何长度字符串存储为项目文本,但只显示前260个字符。


I have an application that outputs large amounts of text data to an MFC tree control. When I call SetItemText() with a long string (larger then 1000+ char) only the first ~250 chars are displayed in the control.
Is there a MAX visible string length for a MFC tree control?
Is there any way to increase the visible limit?

解决方案

The text from the pszText of the TVITEM structure[^] states:

Note that although the tree-view control allows any length string to be stored as item text, only the first 260 characters are displayed.


这篇关于ctreectrl MAX可见字符串长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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