MFC中edit控件是不是有最大行数限制啊?

liuyang1943 2010-07-14 10:32:55
为什么如果我不设置换行能完整显示内容,但我手动将要显示的内容添加\r\n将要显示的内容分为若干行后就不能完整显示所有的内容了呢?我已将edit控件设置为mulline属性了。。
...全文
997 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
Eleven 2010-07-14
  • 打赏
  • 举报
回复
勾上Horizontal scroll/Auto HScroll/Vertical scroll/Auto VScroll/Want return
汪宁宇 2010-07-14
  • 打赏
  • 举报
回复
无论你垂直、水平等...
汪宁宇 2010-07-14
  • 打赏
  • 举报
回复
确实有最大限制!

你尝试想想:

为什么UltraEdit-32、FlexEdit在显示PE文件的时候还不直接是文本显示,而用TextOut之类的方法?
starytx 2010-07-14
  • 打赏
  • 举报
回复
选中 垂直滚动条 设置
whgale 2010-07-14
  • 打赏
  • 举报
回复
我做过edit控件,显示数据 ,在垂直滚动条条件下,是不存在行数限制的,
岁月小龙 2010-07-14
  • 打赏
  • 举报
回复
什么叫不能全部显示?是你控件的宽度不够?
加个滑动条?
cpp2017 2010-07-14
  • 打赏
  • 举报
回复
就20几行吧,为什么就不能全部显示了呢?
=========

加上垂直滚动条试试
ponydph 2010-07-14
  • 打赏
  • 举报
回复
没问题
liuyang1943 2010-07-14
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cpp2017 的回复:]

Specifies the maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the numer of cha……
[/Quote]
谢谢,照这么说应该能完整显示我所有的行啊,其实也不是很多,就20几行吧,为什么就不能全部显示了呢?
cpp2017 2010-07-14
  • 打赏
  • 举报
回复
Specifies the maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the numer of characters. This number does not include the null terminator.
Rich edit controls: If this parameter is zero, the text length is set to 64K characters.

Edit controls on Windows NT/ 2000: If this parameter is zero, the text length is set to 0x7FFFFFFE characters for single-line edit controls or –1 for multiline edit controls.

Edit controls on Windows 95/98: If this parameter is zero, the text length is set to 0x7FFE characters for single-line edit controls or 0xFFFF for multiline edit controls.

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧