Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launching a new browser window using VC++

Status
Not open for further replies.

balachandar

Programmer
Apr 16, 2001
88
CA
Hai All,

I have a activeX control application developed in VC++ running in a Internet explorer window. I need to open a given URL in a new browser window from this application.

I tried the ShellExecute() function to launch a new Internet explorer window from my ActiveX appliction (from the click of a button). But the new URL opens in the same browser window. How can i open the URL in a new window ?

The code i used is given below.
ShellExecute(NULL, "open", " NULL, NULL, SW_SHOWNORMAL);

Thanks and Regards
BalaChandar Ganesan
 
The Launch folder windows in a separate process setting in Folder Options affects ShellExecute. If that option is disabled (the default setting), ShellExecute uses an open Explorer window rather than launch a new one. If no Explorer window is open, ShellExecute launches a new one

Cheers,

Ravi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top