within the selection: although the text ist deselected, querying the control still returns the values of the old selection, which is NOT OK!
I see that too, but it doesn't seem to strange to me, since your mouse handler (callback) is being called before the selection change is registered, before the selection range is updated, before the selchange event is generated
You should be binding to a "SelChange" event , but you can't
Rich Edit (Windows)
EN_SELCHANGE notification code (Windows)
I would use Wx