|
Subject:
|
How to retrieve control's "Name" and "Value" in an
|
|
Posted By:
|
niranjanshaiwale
|
Post Date:
|
9/27/2006 4:20:03 AM
|
How to get the name and value of the control belonging to window in some other program? Currently I am trying it with Win32 APIs. Here are the steps I am foloowing.
1) I am using 'FindWindow' function to retrieve the Handle for the target window. 2) Then I am using 'EnumChildWindows' to get the controls in the traget window. 3) Then I am using 'WM_GETTEXT' in 'SendMessage' function to get the value for the control.
But I also need name of the control so that I can Identify what control has what value. What function can be used to get the name of the control? How to achieve this using Win32 APIs?
Thanks. Niranjan
|
|