Reading data from a big file to CRichEditCtrl is very slow!
Posted on 2002-06-03
I'm writing an application in which I am viewing files in a CRichEditView window. When I am trying to open big files and write them into the rich edit control using the CALLBACK function or even by SetWindowText it takes very long time.
In the callbck function I changed the read method to read huge but the pointer to the LPBYTE is small and also the cb which tells how many bytes to read is just 4094.
I guess that if I can change these values to be higher it will solve the problem or is there any other way to solve this problem?