用ShellExecute去直接打开URL时,如果当前系统已经打开了浏览器,则自动调用最后运行的浏览器去打开地址,而我需要的是新建窗口,请指教如何实现。
当然不用ShellExecute也可以。

解决方案 »

  1.   

    可以通过CHttpConnection这个类实现你要的功能,不需要ShellExecute
      

  2.   

    先用shellexecute运行一个ie,这时这个ie就是当前ie,然后你在打开你的url
      

  3.   

    ShellExecute(NULL, "open", "IEXPLORE.EXE", "HTTP://WWW.CSDN.NET", NULL, SW_SHOWMAXIMIZED );
      

  4.   

    Read KB Article
    Q224816 - INFO: Launching the Default Web Browser with
    ShellExecute
    It explains  "How ShellExecute Determines Whether It Should Launch a New Instance"