The RichEdit control is limited to a number of chars. It seems that number is smaller under XP platform then Me platform.
My problem is that i have a big file and I can not load it into the RichEdit (on Windows Me works just fine).
So, what can I do?
did you try sending the control an EM_EXLIMITTEXT message? The text below is from the MSDN library:
The EM_EXLIMITTEXT message sets an upper limit to the amount of text the user can type or paste into a rich edit control.
To send this message, call the SendMessage function with the following parameters.
SendMessage(
(HWND) hWnd, // handle to destination window
EM_EXLIMITTEXT, // message to send
(WPARAM) wParam, // not used; must be zero
(LPARAM) lParam // text limit
);
Parameters
wParam - This parameter is not used; it must be zero.
lParam - Specifies the maximum amount of text that can be entered. If this parameter is zero, the default maximum is used, which is 64K characters. A COM object counts as a single character.
Return Values - This message does not return a value.
Remarks
The text limit set by the EM_EXLIMITTEXT message does not limit the amount of text that you can stream into a rich edit control using the EM_STREAMIN message.
Before EM_EXLIMITTEXT is called, the default limit to the amount of text a user can enter is 32,767 characters.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.