CEdit::SetLimitTextEdit controls on Windows NT/ 2000: For single-line edit controls, the text limit is either 0x7FFFFFFE bytes or the value of the wParam parameter, whichever is smaller. For multiline edit controls, this value is either –1 bytes or the value of the wParam parameter, whichever is smaller.Edit controls on Windows 95/98: For single-line edit controls, the text limit is either 0x7FFE bytes or the value of the wParam parameter, whichever is smaller. For multiline edit controls, this value is either 0xFFFF bytes or the value of the wParam parameter, whichever is smaller.
除非你自己画...
自己定义文档....
2k下记事本倒是可以打开64k以上的文本,不知是怎么做的?
在2000,xp下面没有限制
或者用richedit。
....
if(pEdit->GetLimitText() > strBuffer.GetLength()){
pEdit->SetLimitText( strBuffer.GetLength() );
pEdit->SetWindowText(strBuffer);
}
读入文件到cedit以前,做一个缓存,大于64k的数据不要放进去,到需要的时候再放进去。不过我觉得这样还不如用richedit
------------------------
::高级编程小书童::
否则只能自己写了