getting handle of child windows

Hi. this is my first post and my english isn't very good. sorry

my problem is: i get the handle of particular windows getting your name. but this window have a chat which i need get your handle for my program

this chat is a Internet Explorer_Server. i know this thanks WinID

how can i get it ??. thank you very much
[347 byte] By [Klaudioz] at [2007-11-20 10:41:59]
# 1 Re: getting handle of child windows
I used this:

Dim hWnd As IntPtr = GetForegroundWindow()
Dim hWnd2 As IntPtr = FindWindowEx(hWnd, IntPtr.Zero, "Shell Embedding", vbNullString)
Dim hWnd3 As IntPtr = FindWindowEx(hWnd2, IntPtr.Zero, "Shell DocObject View", vbNullString)
Dim hWnd4 As IntPtr = FindWindowEx(hWnd3, IntPtr.Zero, "Internet Explorer_Server", vbNullString)

for the tree class structure

http://img514.imageshack.us/img514/1904/arboljq4.jpg

but hWnd2 take the 3 branch being incorrect becuase the first branch is which i need get its handle.

the solution can be get the 3 handles of shell Embedding and do complete process. then select 1 of them which have right results
Klaudioz at 2007-11-10 3:08:35 >