CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2004
    Posts
    166

    How to get delphi's edit-control text?

    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!

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    Re: How to get delphi's edit-control text?

    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.

  3. #3
    Join Date
    May 2004
    Posts
    166

    Re: How to get delphi's edit-control text?

    I used spy++ to get the TTntEdit control handle. But it doesn't has any child windows...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured