怎么样用ShellExecute在新的IE窗口中打开网址? 我在使用 ShellExecute(handle,nil,Pchar(GetNewAdLink),nil,nil,sw_shownormal); 时,它老是在原有的IE窗口中打开新的网址,我想让它在新的IE窗口中打开网址,不知道能不能办到?如果不能办到,如果使用让一个网址在新的IE窗口中打开呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ShellExecute(0, 'open', pchar('C:\Program Files\Internet Explorer\IEXPLORE.EXE'), NIL, NIL, SW_NORMAL);//这里最好自己取ie绝对地址 ShellExecute(0, 'open', pchar('http://www.163.com'), NIL, NIL, SW_NORMAL) 这种方法不太好用哦,有时候会正确在新窗口中打开,但有时却是覆盖掉原IE窗口,然后再打开一个新的IE窗口。 var si: TStartupInfo; pi: TProcessInformation;begin FillChar(si, SizeOf(si), #0); si.cb := sizeof(STARTUPINFO); CreateProcess(nil, '"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "http://blog.csdn.net/shadowstar"', nil, nil, False, 0, nil, nil, si, pi);// ShellExecute(0, 'open', 'C:\Program Files\Internet Explorer\IEXPLORE.EXE',// 'http://blog.csdn.net/shadowstar', nil, SW_SHOW);end;两种方法都可行 ShellExecute delphi有自带的说明的 看它的参数说明 很简单的 ShellExecute(handle,'opennew',Pchar(GetNewAdLink),nil,nil,sw_shownormal); 在线求助?怎么判断两数相除,能除开? xml取值问题 case语句各条件间能否跳转? 跪求:Delphi中有关于AdoDataSet的ConnectionString问题 熟悉 WebBroker 的朋友请进 问一个关于在DBGrid中编辑数据的问题! 这段代码错在哪里?不好意思,今天才接触Paradox(在线等待) 如何用Access作DELPHI的后台数据库 delphi自带示例程序DockExk的问题 求word文档->pdf文档的函数或控件!! 在开发控件过程中遇到的困惑?请大家帮看看,谢谢! 请各位大哥看看,如何解决!
NIL, NIL, SW_NORMAL);
//这里最好自己取ie绝对地址
ShellExecute(0, 'open', pchar('http://www.163.com'),
NIL, NIL, SW_NORMAL)
si: TStartupInfo;
pi: TProcessInformation;
begin
FillChar(si, SizeOf(si), #0);
si.cb := sizeof(STARTUPINFO);
CreateProcess(nil,
'"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "http://blog.csdn.net/shadowstar"',
nil, nil, False, 0, nil, nil, si, pi);
// ShellExecute(0, 'open', 'C:\Program Files\Internet Explorer\IEXPLORE.EXE',
// 'http://blog.csdn.net/shadowstar', nil, SW_SHOW);
end;两种方法都可行