Open URL in Existing IE Window - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
To find the existing instance of Internet Explorer, we need to use the FindWindowEx and EnumChildWindows Windows API calls.
FindWindowEx will find a window with a given classname - we then use the EnumChildWindows routine to search that application for the EditControl (read: address text box) in Internet explorer. Once the textbox has been found, a simple SendMessage call can be made with the WM_SETTEXT parameter to set the address.
Once the text has been set in IE's address textbox, we can simply do another SendMessage call, this time with WM_KEYDOWN and passing the 'return' key constant
要想发现Internet Explorer的实例,我们需要使用 FindWindowEx 和EnumChildWindows这两个Windows API调用。FindWindowEx将发现具有给定类名的窗口,再使用EnumChildWindows 搜索浏览器中的文本框控件的窗口。一旦找到文本框,发出一个简单的SendMessage 调用,使用其WM_SETTEXT 参数来设置地址。
来源: http://www.codeguru.com/vb_internet/2342.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
2342_FindIE |
 1.1  |
2004-03-07 |
下载 |
|
|