本帖最后由 huangqibin888 于 2011-01-07 15:01:29 编辑

解决方案 »

  1.   

    The maximum number of TCHARs the user can enter. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. This number does not include the terminating null character. 
    Rich edit controls: If this parameter is zero, the text length is set to 64,000 characters. Edit controls on Windows NT/2000/XP: 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/Me: If this parameter is zero, the text length is set to 0x7FFE characters for single-line edit controls or 0xFFFF for multiline edit controls. 
      

  2.   

    我设的nMax=327680,大于64k了,但是还是被限制在64k内。
      

  3.   


    别用SendMessage(hWnd, EM_SETLIMITTEXT, nMax, 0); 
    试试 ((CEdit*)GetDlgItem(IDC_EDIT1))->SetLimit(0xFFFFFFFF);
      

  4.   

    SendMessage(hWnd, EM_SETLIMITTEXT, nMax, 0);  
    试试 ((CEdit*)GetDlgItem(IDC_EDIT1))->SetLimit(0xFFFFFFFF);
      

  5.   

    现在能打开64K,不知道edit控件和text结合的时候,这个text是不是有大小限制
      

  6.   

    和edit控件结合的text,有没有大小限制的啊,还是说我这样做,就已经改变了TEXT的大小呢
      

  7.   

    edit有64k限制,使用RichTextBox代替。
      

  8.   

    我800K的可以,刚才试过了。
    unicode版本的,就算除以2,也有400K
    我直接SetLimitText(1024 * 1024 * 10);vc2008
      

  9.   

    我用的是wince6.0,是不是在wince中,最大只能设为64k了?
      

  10.   

    http://msdn.microsoft.com/en-us/library/aa930770.aspx
    写着If this parameter is not zero, the maximum text length is 0x7FFE characters for single-line edit controls or 0x7FFFFFFE characters for multiline edit controls。
    也就说最大可以是0X7FFFFFFE
    有和((CEdit*)GetDlgItem(IDC_EDIT1))->SetLimit(0xFFFFFFFF);功能一样的其他SDK函数吗,MFC不能用。
      

  11.   

    WinCE和Win9x都只能限制在64KB,没有别的办法,请改用RichEdit