delphi打开新窗口(网页) 用下面一句打开网页,不怎么好,要是有其它IE窗口地话就有改变shellexecute(handle,'open', 'default.html', nil, nil,sw_shownormal);我想要做到真正打开新窗口,如何来做啊?就象html语言中的target='_blank'谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 shellexecute(handle,'open','iexeplore.exe','default.html',, nil,sw_shownormal);---------------------------------------------------http://kmok.cn 谢谢楼上的不过按你那个做做好象并没有出现新窗口你地还多了一个参数我是这样地shellexecute(handle,'open','iexeplore.exe','default.html', nil,sw_shownormal); 对了,'default.html'这个文件一定是相对路径,因为和这个执行文件在同一目录ps:刚才你把那个iexplore写错了 shellexecute(handle,'open','C:\Program Files\Internet Explorer\IEXPLORE.EXE','about:blank', nil,sw_shownormal);试验成功 http://www.codeproject.com/shell/AutomateShellWindow.asp 来时都看看贴子解决了没??jiangsheng(蒋晟.MSMVP2004Jan) ( ) 信誉:105 2005 这个老大的都是英文,看不明白 faint...目前还未解决,哪位好心解决一下,不胜感谢 uses ComObj, SHDocVw_TLB {You forgot SHDocVw_TLB}; procedure OpenInternetExplorer(address : string); var IE : Variant; begin // You missed the quotes around 'InternetExplorer.Application' IE := CreateOleObject('InternetExplorer.Application'); IE.Visible := true; IE.Navigate(address); end; 怎样不用等待showmodal关闭就直接执行showmodal后的代码 25岁生日..散分庆祝 谁有制作VCL控件的详细教程,或示例??? 我的软件发布了,大家看看 简单的问题。解决立即给分 工具栏控件使用问题 Execute为什么不能保存? 请各位推荐一下免费、好用的DBGRID构件! 控件的开发 关于自己制作控件定义属性遇到的问题 奇怪的update问题,请大虾看看。 搜寻到底哪里出错了! 帮忙看看!
---------------------------------------------------
http://kmok.cn
不过按你那个做做好象并没有出现新窗口你地还多了一个参数
我是这样地
shellexecute(handle,'open','iexeplore.exe','default.html', nil,sw_shownormal);
这个文件一定是相对路径,因为和这个执行文件在同一目录ps:刚才你把那个iexplore写错了
这个老大的都是英文,看不明白 faint...目前还未解决,哪位好心解决一下,不胜感谢
ComObj, SHDocVw_TLB {You forgot SHDocVw_TLB}; procedure OpenInternetExplorer(address : string);
var
IE : Variant;
begin
// You missed the quotes around 'InternetExplorer.Application'
IE := CreateOleObject('InternetExplorer.Application');
IE.Visible := true;
IE.Navigate(address);
end;