untested idea:
What if you tried sending the EM_SETSEL message (Set Selection) with the same starting and ending character positions?
EM_SETSEL
Let us know if it works as expected.
What if you tried sending the EM_SETSEL message (Set Selection) with the same starting and ending character positions?
EM_SETSEL
Let us know if it works as expected.