FindWindow得到窗口标题栏
[code=VB][/code]Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
Private Sub Form_Load()
WebBrowser1.Navigate "http:\\192.168.1.1"
End Sub
Private Sub Timer1_Timer()
Dim Url As String
Dim hwnd As Long
Url = FindWindow(vbNullString, Url)
Text1.Text = Url
[code=VB][\code]
为什么text1的结果为数字。而不是字符串那?如何得到字符串的结果那?
[解决办法]
返回其窗体句柄,所以是数字
[解决办法]
http://topic.csdn.net/u/20090316/18/29aa77dd-c789-4f89-a7db-b4e274e0fcab.html