Click to See Complete Forum and Search --> : How to get delphi's edit-control text?


yaniv_av
May 6th, 2009, 04:41 AM
Hi all!

Is there any way to retrieve text from the delphi TTntEdit control, with
win32?
The problem is that I want to get information from external application, which is written in delphi. Delphi uses VCL controls which encapsulate all the win32 messages handling. So except from the control handle (HWND) I don't have any other information and cann't retrieve it using standard win32messages.
So sending WM_GETTEXT, or GetWindowText is not work here...
Does someone know a way to do it??

Thanks!

olivthill2
May 6th, 2009, 06:11 AM
By using a tool spying the controls of runnning applications, you should be able to find the handle of the editbox at the core of TTntEdit control and then use GetWindowText(). Or you could enumerate child windows until you find the editbox at the source of TTntEdit control.

yaniv_av
May 6th, 2009, 06:31 AM
I used spy++ to get the TTntEdit control handle. But it doesn't has any child windows...