I am working on implementing spellchecker in an MFC application. What I want to do is display red lines under misspelled words.
I found one example where this is done, but it only works for a simple edit field, because it can just use the default edit font to perform calculations to draw squiggly lines. But this does not work for rich editing, as in the advanced editing control it is possible that different words may have different fonts. In this case, the example I found draws lines in the wrong places.
Please let me know if someone has already done this for CRichEditCtrl? (It should handle the text of any font / size that is present in the advanced edit control.)
Thanks Sachin
source
share