tom

RichEdit's ITextRange: Determine if a user's cursor is in a word?

I'm using ITextRange from a RichEdit control. I want to determine if a user's cursor is touching a word. The problem is that calling iTextRange.expand(tomWord) will include tailing spaces: Brackets indicate the range: Before: weas[]el . After: [weasel ]. My original plan was to expand the range, and check if it c...