What is the delaration syntax for the findchildbyclass funcxtion???????? Can someone please tell me
Printable View
What is the delaration syntax for the findchildbyclass funcxtion???????? Can someone please tell me
Can i also know the declaration syntax for the findchildbytitle function
You are in luck. They are the same function.
Declare Function FindWindowEx& Lib "user32" Alias "FindWindowExA" (ByVal _
hWndParent As Long, ByVal hWndChildAfter As Long, ByVal lpClassName As String, _
ByVal lpWindowName As String)
to search by windowname, set lpclassname to vbnullchar
to search by classname, set lpwindowname to vbnullchar
if you set them both to null, it returns all child windows.
pseudo example:
hwnd = findwindowex(parent's hwnd, last found hwnd, vbnullchar, vbnullchar)
actual code:
do
hwnd = findwindowex(me.hwnd, hwnd, vbnullchar, vbnullchar)
if hwnd > 0 then msgbox hwnd
loop until hwnd = 0