用ShellExecute先后打开网页,会打开两个窗口,我想在同一窗口中打开,怎么办?
ShellExecute(NULL,_T"open"),"iexplore",_T"http://WWW.SOHU.COM"),NULL,SW_SHOWNORMAL);
ShellExecute(NULL,_T("open"),"iexplore",_T("http://NEWS.SOHU.COM"),NULL,SW_SHOWNORMAL)
例外帮我看看:
http://community.csdn.net/Expert/topic/3592/3592359.xml?temp=.9359857
ShellExecute(NULL,_T"open"),"iexplore",_T"http://WWW.SOHU.COM"),NULL,SW_SHOWNORMAL);
ShellExecute(NULL,_T("open"),"iexplore",_T("http://NEWS.SOHU.COM"),NULL,SW_SHOWNORMAL)
例外帮我看看:
http://community.csdn.net/Expert/topic/3592/3592359.xml?temp=.9359857
ShellExecute(NULL, "open", "http://www.sohu.com", NULL, NULL,SW_NORMAL);
ShellExecute(NULL, "open", "http://news.sohu.com", NULL, NULL,SW_NORMAL);
//not include "ieexplore"
不过有个问题,就是它打开的窗口是最近一次所导航过的IE窗口,这样当有多个IE窗口时,就不一定符合你的要求了。
有个很好的办法就是自定义IE,自己做一个,我是这么做的。