Link to home
Start Free TrialLog in
Avatar of Cuong
Cuong

asked on

IE 5 parameters/switches

All,

I not sure if this question should be posted in this topic, but since I'm programming in C++ at the moment I'll try here first.

What I'm looking for is a list of the parameters/switches that IE5 can accept on a Command Line, so I can run it from my application (Using CreateProcess(..)).

I want to be able to run IE5 and open a specific page.  I also want the ability to control the size and position of the window.

Does anyone know what parameters I use to do this?

Thanks in advance!
Avatar of jkr
jkr
Flag of Germany image

See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q178058 ("INFO: Command-Line Switches for Internet Explorer 4.0 (Q178058)") - this also applies to later versions. What you want to do is accomplished using

iexplore.exe -nohome https://www.experts-exchange.com

Avatar of Cuong
Cuong

ASKER

Yes, I seen the support document.
But I want to know how to control the size and position of the IE window as well.  The support document doesn't tell you about this.
I'm not sure what compiler or libraries you are using in your application, so I will indicate some tips as you
were using Visual Studio 6, MFC and/or ATL.

You may be interested in using the MFC HTML view or the ATL HTML control.

If you are using MFC in your application, a view derived from CHtmlView will provide you with IE capabilities
within your application. As it is a view you created, you can control its configuration (size, position, etc.) as usual.

You would be able to do things like Navigate(), GoBack(), GoForward(), etc.

If you want to go further and use the DHTML model as you would do with JavaScript, please refer to the GetHtmlDocument()
member function of the MFC class CHtmlView. Here you will need COM and DHTML skills.

The "Creating a Web Browser-Style MFC Application" article on Microsoft Library could be useful:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vchowCreatingWebBrowserstyleApplication.asp

On the other hand, if you are using ATL, you can insert and HTML control which will give you the IE functionality without the MFC overhead. This is a more difficult way to go. Here, you would be creating an ActiveX control so your application will have to provide container
capabilities.

I hope this information is useful for you.

Ricardo.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
rbriceno, please scroll down and take the time to read the "Tips on Comments and Answers" before actually posting an answer :o)
Avatar of Cuong

ASKER

It interesting what you have said, but for now I am not looking for that type of solution.  All I need is to run the IE browser as a seperate application.
Avatar of Cuong

ASKER

Thanks!

I never noticed these parameters!