It seems that I already have something useful. I've added multilevel undo/redo, GetCharFormat/SetCharFormat (very incomplete) and modify flag, and cleaned up the code a lot. The source code is downloadable from here:
http://foltman.com/richtext-20050204.tar.gz
I'll try to add handlers for basic editing messages (like WM_SETTEXT) and maybe notifications too, DLLize it and then make a Wine patch out of it. Is that OK ?
It's not like everything is done the way it should be (for instance, coordinate system is still pixel-based and not twips-based), but in this stage the risk of having to constantly rewrite everyone else's code is much lower.
Krzysztof
Krzysztof Foltman wrote:
I'll try to add handlers for basic editing messages (like WM_SETTEXT) and maybe notifications too, DLLize it and then make a Wine patch out of it. Is that OK ?
Fantastic! If you get round to doing this, it's probably a good idea to submit it as a patch to implement dlls/riched20 instead of trying to replace dlls/richedit for now.
If you need any help integrating it into the Wine tree, let me know. I think you'll find that once the code is in there, people will start pointing out things to work on, and suggesting ways to improve it further.
Mike