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.
Mike.
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.
Mike.
Mike,
Use SetWindowText to load longer than 64k. It will handle about 4 meg OK.
Regards,
hutch@pbq.com.au
Use SetWindowText to load longer than 64k. It will handle about 4 meg OK.
Regards,
hutch@pbq.com.au
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
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