Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IE 5 parameters/switches

Posted on 2002-04-02
7
Medium Priority
?
221 Views
Last Modified: 2010-04-02
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!
0
Comment
Question by:Cuong
  • 3
  • 3
7 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 6912832
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 http://www.experts-exchange.com

0
 

Author Comment

by:Cuong
ID: 6912947
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.
0
 

Expert Comment

by:rbriceno
ID: 6912994
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.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 6913008
>>But I want to know how to control the size and position of the IE window as well.

You can do that by setting these parameters in the "STARTUPINFO" struct that is used by "CreateProcess()" and setting its "dwFlags" member to "STARTF_USEPOSITION | STARTF_USESIZE"
0
 
LVL 86

Expert Comment

by:jkr
ID: 6913011
rbriceno, please scroll down and take the time to read the "Tips on Comments and Answers" before actually posting an answer :o)
0
 

Author Comment

by:Cuong
ID: 6917671
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.
0
 

Author Comment

by:Cuong
ID: 6917674
Thanks!

I never noticed these parameters!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question