I have created an ActiveX control that's an MFC Doc/View Rich Edit Control. I need to add color to the text as it is displayed to highlight syntax, keywords, etc. I can fairly quickly handle files up to 32K or so but beyond that it is as slow as molasses. So my question is...
How can I speed this up prior to displaying it?
I've tried a worker thread without much/any speed improvements.
I've tried the EDITSTREAM callback figuring that I could modify the StreamIn text prior to display. Unfortunately the callback is never executed (I'm missing something there)
I really can't use a 3rd party one since I need to add some specific bells & whistles not found in any I've reviewed.
Thanks in advance,