I have some problems with RichEdit. I prepare some text string in memory (length of this string was about 88Kb) and then try update RichEdit control with
invoke SendMessage, hREdit, WM_SETTEXT, ULL, strBuf.
After all I've see only a part of all text in the window, less than a half. May be WM_SETTEXT can work with 64Kb? Note that during initialization of RichEdit control I set limit to 2Mb with
invoke SendMessage, hREdit, EM_EXLIMITTEXT, 0, 2000000.
May be somebody know what I am doing wrong and what's my problem?

Thank to all who can help me.
Posted on 2001-10-23 05:14:41 by Mike

Use SetWindowText to load longer than 64k. It will handle about 4 meg OK.


Posted on 2001-10-23 06:23:49 by hutch--
Sorry, GetWindowText, SetWindowText, WM_GETTEXT and WM_SETTEXT can NOT properly work with the large strings. Now I know only one decision of this problem:
1. make a name of temporary file
2. create a temporary file
3. write a string into this file
4. read this file using EM_STREAMIN into RichEdit box
5. close and delete temporary file
Yes, this algorithm works properly, but may be somebody do the same with more simple way?!

Thanks, Mike
Posted on 2001-10-24 04:02:21 by Mike