FindWindowEx to get MDI Child handle?
Can anyone explain to me how to use the FindWindowEx function to get the handle of a mdi child?
I used
Code:
WinWnd = FindWindow(vbNullString, "My App Title")
to get the handle of the parent window. But when I try
Code:
bWnd = FindWindowEx(WinWnd, ByVal 0&, vbNullString, "My Child Title")
bWnd is always 0...
"MyChildTitle 1" is the only child form under the parent. I've tried with two children but it still wont pick up any of them...any ideas?
Thanks.
Re: FindWindowEx to get MDI Child handle?
Quote:
Originally Posted by
brenaaro
Thanks Jim, I had seen the EnumFunction in the API guide but I wasn't sure it was what I needed since the decription of FindWindowEx said it searched child windows.
Anyways, it worked, I got the handle, thanks a bunch =)
Hi Thread Starter ! Have you Finished this code ? Please Please share me , i'm stucking with the same problem !
Please show me your code
Thanks you so much !