Home > Software engineering >  Consult a great god, I by clicking on the button to open the ie browser, how to implement???
Consult a great god, I by clicking on the button to open the ie browser, how to implement???

Time:10-14

I want to by click on the button in the dialog to start the IE browser and open the specified page


when I click on the button again, I have already started the current Internet explorer browser TAB open another url


Consult everybody a great god code how to write

CodePudding user response:

ShellExecute (NULL, _T (" open "), _T (" iexplore. Exe "), _T (" http://www.baidu.com "), NULL, SW_SHOW);

CodePudding user response:

The
refer to the original poster qq_24625593 response:
I want to by click on the button in the dialog to start the IE browser and open the specified page


when I click on the button again, I have already started the current Internet explorer browser TAB open another url


Consult everybody how great god code written


You this will open a browser, but at the time of the click and will create a new window, my idea is that start only once, and has launched the browser to open the specified url

CodePudding user response:

ShellExecute (NULL, _T (" open "), _T (" http://www.sina.com.cn "), NULL, NULL, SW_SHOWNORMAL);

IE browser in the attribute set TAB option, from the current window is set to open a new TAB

CodePudding user response:

System (" start explorer http://www.zhihu.com/");
  • Related