Reprinted: http://blog.csdn.net/nokianasty/article/details/5996221
Use ShellExecute to open a webpage window to open the webpage we specified
Execute ShellExecute (null, _ T ("open"), "http://www.csdn.net", null, null, sw_show );
If there is no ie window before, open
However, if one already exists, it is displayed in the original window.
How can I generate a new window display? No matter whether the window has been opened before
ShellExecute is a common API that can runProgramTo open the webpage.
ShellExecute (null, "open", "http://www.csdn.net", null, null, sw_showmaximized );
In this way, you can open a Web page, but not in the new ie. You can open the web page in a new ie in the following way.
ShellExecute (null, "open", "istme", "http://www.csdn.net", null, sw_showmaximized); // vc6.0 version
Use the following version in vs2008:
ShellExecute (null, l "open", l "istme", l "http://www.csdn.net", null, sw_showmaximized );
It works better with syslink controls! Add the following to the syslink control's click response function:
ShellExecute (null, l "open", l "iexplore", l "http://www.csdn.net", null, sw_showmaximized );
Everything is OK!