Re: How to launch MSIE from VC++ in a window without menus or tool
- From: John Klein <john.klein@xxxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 09:57:29 -0700
Thanks William.
I'll check out the scripting group. I'm sure I can probably write some
empty page that runs some JS on the body load() event that will minimize or
hide the main page, while displaying a popup window. Then kill the main page
when the popup is discarded.
Thanks for your assistance again.
--
John
"William DePalo [MVP VC++]" wrote:
"John Klein" <john.klein@xxxxxxxxxxxxxxxx> wrote in message.
news:D3BBD3E6-57FC-4EAA-BE17-67B5B576679D@xxxxxxxxxxxxxxxx
That's pretty cool. Ultimately, I would like to make this code as
portable
as possible so I can run it on PocketPC, WinCE.NET, as well as other
browsers
such as Firefox, Mozilla, and Safari.
The issue is that you want to do at least two things. One, you want to start
a process. Two, you want to automate the target process - in the case you
mentioned you wanted to hide tolbars and menubars etc.
It's easy to generalize the first step. You simply call CreateProcess() and
specify the name of the process that you want as well as its command line.
To command IE to open a new window you could use the command
-new http://www.foo.com
But I doubt that the various browsers agree on a set of command line
arguments or an automation interface.
If there's a more portable way, even if I have to launch, and hide the
main
Browser window and launch a window from Javascript, that would be
acceptable
if the user didn't notice it.
You might want to check one of the scripting groups for advice.
Just by the way, over a decade ago, SpyGlass published an interface for
automating browsers. I just did a quick google for it and came up empty but
I did find this KB article which describes IE's support of it:
http://support.microsoft.com/kb/q160957/
There was no FireFox way back then, but at least one Mac browser (I forget)
supported it. Maybe it will help you, maybe not. Good luck.
Thanks for the code though.
You are welcome.
Regards,
Will
- References:
- Re: How to launch MSIE from VC++ in a window without menus or toolbars
- From: William DePalo [MVP VC++]
- Re: How to launch MSIE from VC++ in a window without menus or tool
- From: John Klein
- Re: How to launch MSIE from VC++ in a window without menus or tool
- From: William DePalo [MVP VC++]
- Re: How to launch MSIE from VC++ in a window without menus or toolbars
- Prev by Date: Re: How to launch MSIE from VC++ in a window without menus or tool
- Next by Date: Re: SetThemeAppProperties and SetWindow Theme do not effect Unicode data handling
- Previous by thread: Re: How to launch MSIE from VC++ in a window without menus or tool
- Next by thread: Re: MDI and Scalable Texts
- Index(es):
Relevant Pages
|