联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Open URL in Existing IE Window - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为15479
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • Air Traffic Controller
  • jasperreports
  • PoolMan
  • Apache-SSL-Jserv
  • virtualdub-win
  • CppUnit
  • GLgraph
  • Step Mania
  • FCK editor
  • -= 更多 =-

    项目描述:
    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 下载

    原始下载连接(国外) http://www.codeguru.com/vb_internet/2342_FindIE.zip
    http://www.codeguru.com/code/legacy/vb_internet/2342_FindIE.zip

      » 合 作 伙 伴