homersux
November 24th, 2004, 13:51
I am a little upset that edit control always select the entire text body in it. The code goes like this:
SetWindowText(hwndEdit, TEXTBUFFER);
SendMessage(hwndEdit, EM_SETSEL, -1, 0); <-- suppose to clear the selection but it doesn't work.
Can someone help me out with this problem? Thanks!
Lately I am hacking this well known new game that just came out,
I wrote a small application to help me looking into its internals. Oh boy, it's gonna be hacked death just like all the previous games from the same company.
Their developers just don't seem to learn at all.
Edit: I have looked for answers on internet and in books and to no avail to this seemling simple problem...
SetWindowText(hwndEdit, TEXTBUFFER);
SendMessage(hwndEdit, EM_SETSEL, -1, 0); <-- suppose to clear the selection but it doesn't work.
Can someone help me out with this problem? Thanks!
Lately I am hacking this well known new game that just came out,

I wrote a small application to help me looking into its internals. Oh boy, it's gonna be hacked death just like all the previous games from the same company.

Edit: I have looked for answers on internet and in books and to no avail to this seemling simple problem...