I desperately need to know how to obtain an object name from a hwnd. Ie. I have the hwnd of the active form (of another application) and now I need to loop through all controls on that form and look for a property of a particular type of control.
Some of the code is listed below:
Declare Function GetForegroundWindow& Lib "user32" ()
private sub find_control()
dim ret as long
ret = getforegroundwindow()
'..now I have the hwnd of that form
'..I would like to do the following
'..dim myobj as object
'..for each myobj in formname.hwnd
'..if typeof(myobj) is textbox then
'..it is a text box
Does anyone out there know of the API of VB proc that I use???? Please help!?