注册 | 登录
收藏 | 帮助
热门文章
编辑推荐
相关文章  
D2OL 让网络保卫大家的健康
信息安全的隐患-GoogleHacking原
Linux/Unix环境下的make和makefi
使用netfilter/iptables构建防火
一段使用 iptable 设置防火墙的设
iptables使用实例
用iptables实现NAT
限制单个IP并发TCP连接的iptable
iptables 入门 (一篇好文章)
透明防火墙架设的完全攻略(brid
您现在的位置: 顶尖设计 >> IT学院 >> 编程开发 >> Delphi >> 文章正文
OLE with the internet explorer
作者:lanyus  来源:lanyus 的 Blog  点击:  更新:2006-12-19
简介:

OLE with the internet explorer

uses comobj; 



procedure OpenIE(aURL: string); 

var 

  IE        : Variant; 

  WinHanlde : HWnd;  

begin  

  if( VarIsEmpty(IE) )then 

  begin  

   IE:=CreateOleObject('InternetExplorer.Application');

   IE.Visible := true;  

   IE.Navigate(aURL); 

  end  

  else  

  begin  

    WinHanlde := FindWIndow('IEFrame', nil); 

    if (0 <> WinHanlde) then 

    begin  

      IE.Navigate(aURL);  

      SetForegroundWindow(WinHanlde);  

    end  

    else 

      ShowMessage('Can''t open IE !'); 

  end; 

end;  





procedure TForm1.Button1Click(Sender: TObject); 

begin 

  OpenIE('http://www.infojet.cz/delphi/tips/'); 

end; 









  • 上一篇文章:
  • 下一篇文章:
  • 分享此文:该页面添加到 Mister Wong 添加到雅虎Yahoo!收藏 Add to:Del.icio.us Post to Furl Digg this 添加到Google书签 reddit spurl blogmarks 365Key 评论  收藏  分享  打印
     我来说两句
    姓名:       验证码:   
    主页: 
    评分: 1分 2分 3分 4分 5分
    本频道近期热评文章:
      关于我们 | 联系我们 | 站点地图 | 广告投放 | 友情链接 | 在线留言 | 版权申明
    版权所有 © 2004-2007 顶尖设计(bobd.cn)
    未经授权禁止转载,摘编,复制本站内容或建立镜像. 沪ICP备07504942号 
    网络110
    报警服务