Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Function GetChilHwnd(ByVal 窗口标题 As string ,byval 子窗口类名 as string ) As Long
Dim hwwd As Long
hwnd=FindWindow(vbnullstring,窗口标题)
hwwd = FindWindowEx(MeHwnd, 0, 子窗口类名, vbNullString)
GetWebBrowserHwnd = hwwd
End Function