theotyflos
Programmer
Hi group, I need some help with the EM_SETSEL message:
I have a text box like this:
[COLOR=black white]abcdefghijklmnopqrst [/color]
After I send a EM_SETSEL message with parameters 10, 16 it selects characters from "k" to "p":
[COLOR=black white]abcdefghij[/color][COLOR=white blue]klmnop[/color][COLOR=red blue]|[/color][COLOR=black white]qrst [/color] with the cursor left after the "p"
Is there any way that the cursor stays before the "k" ? like this:
[COLOR=black white]abcdefghij[/color][COLOR=red blue]|[/color][COLOR=white blue]klmnop[/color][COLOR=black white]qrst [/color]
I tried to reverse the parameters (16, 10) but nothing happens.
Thanks in advance.
Theophilos.
-----------
There are only 10 kinds of people: Those who understand binary and those who don't.
I have a text box like this:
[COLOR=black white]abcdefghijklmnopqrst [/color]
After I send a EM_SETSEL message with parameters 10, 16 it selects characters from "k" to "p":
[COLOR=black white]abcdefghij[/color][COLOR=white blue]klmnop[/color][COLOR=red blue]|[/color][COLOR=black white]qrst [/color] with the cursor left after the "p"
Is there any way that the cursor stays before the "k" ? like this:
[COLOR=black white]abcdefghij[/color][COLOR=red blue]|[/color][COLOR=white blue]klmnop[/color][COLOR=black white]qrst [/color]
I tried to reverse the parameters (16, 10) but nothing happens.
Thanks in advance.
Theophilos.
-----------
There are only 10 kinds of people: Those who understand binary and those who don't.