Re: [GD-Windows] Opening a browser window
Brought to you by:
vexxed72
From: Ed S. <ed...@sw...> - 2001-12-04 07:42:21
|
Brian Hook <bri...@py...> writes: > Right now I'm opening a browser window using: > > ShellExecute( NULL, > "open", > "http://www.pyrogon.com", > NULL, > NULL, > 0 ); > > This works fine, however it has a notable problem in that it usurps > existing open browser windows. While annoying, it's also really bad > when you accidentally take over a pop up ad which may have a reduced set > of functionality (no scroll bars, no resizing) and which may also be > instinctively closed without realizing that it's no longer a popup ad. > > I'd like to be able to force open a new browser window altogether > without having to know the name of the app they use for their browsers. > I suppose that in the worst case I could query what app they use for > file type URL and then use that...but damn, that seems nasty. Is there > a simpler way? The following works for me (tested on W98/IE4 only): ShellExecute(NULL, "opennew", "http://your_page_here.html", NULL, NULL, SW_SHOWNORMAL); -- Ed |