I am trying to get the handle of a child window, I can get the handle of a parent or reg window but I see that the api i use will not retrive a child window.
Thanks,
Jeremy
Printable View
I am trying to get the handle of a child window, I can get the handle of a parent or reg window but I see that the api i use will not retrive a child window.
Thanks,
Jeremy
You can use the enumChildWindows API It'sin the API viewer, You need a callback function declare it like this
Code:Public Function EnumFunction (ByVal hWnd as Long, ByVal lParam as Long) as Long
'Put Code Here
EnumFunction = True
End Function
when you call Enum Child Windows use AddressOf EnumFunction as lpEnumFunc and the function will call EnumFunction onc3e for each child window of the hWnd parameter with lParam set to the value of lParam in the callin function.
Hope this helps.