What am i trying to do:

Get a handle to some window, than get selected text in it (it could be multiline edit or richedit)
translate it and set back replacing original selection.

Actually the question is how can we accomplish this? I.e. Get selected text from window belonging to another process?

May be this is tooo easy, but i cant manage it :(
Posted on 2002-03-02 02:16:13 by Yuk
Send a WM_GETTEXT/SETTEXT message directly instead of using Get/SetWindowText.

Thomas
Posted on 2002-03-02 02:47:16 by Thomas
Thank you,Thomas!

That's what i did.WM_GETTEXT gived no result.
I think i missed something. I 'll try to figure it out..
Posted on 2002-03-02 09:31:11 by Yuk
Did you allocate a buffer to hold the text before you posted the WM_GETTEXT message? Maybe you should post the short section of code that doesn't work, it will make it a lot easier to diagnose the problem.
Posted on 2002-03-02 18:24:55 by sluggy
Use GetWindowTextLength() to find out the size of the text before hand.
Posted on 2002-03-03 00:08:01 by comrade