How can i read a listbox items in another application's window? I could get the window's handle but i dont know a clear way to access components within.
相关问题
- Is there a Delphi 5 component that can handle .png
- the application was unable to start correctly 0xc0
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- Handle button click in another application
相关文章
- Why windows 64 still makes use of user32.dll etc?
- Best way to implement MVVM bindings (View <-> V
- Can WM_NEXTDLGCTL be used with non-dialog windows?
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- Are resource files compiled as UNICODE or ANSI cod
- HelpInsight documentation in Delphi 2007
You can try to get something from the following project, where is shown, how to enumerate child windows, filter them for a given class name and how to get the items of a list box. I would comment it, but this would be a long story, so please take it as a temporary post...
Unit1.pas
Unit1.dfm
Project1.dpr
Get list of child controls with EnumChildWindows (when main window handle is already known).
Then look at the LB_GETTEXT Message on MSDN (or Delphi WinSDK Help). Don't forget to check for string length (LB_GETTEXTLEN) and allocate memory buffer