Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am working on a MFC application where in I would be displaying local html page (with a custom message) in IE or other browsers present on the system, based on some conditions.

I am using ShellExecute function to open the browsers. I am able to open the local html page and all. But I don't want to display the path of the local file in the address bar of the browser. I want to diplay the local page but not its path in the address bar.

I have been searching in the net for some pointer but have not found any :(

Any help or pointer on this would be helpful.

Please do the needful.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Feb-12 4:00am    
Short answer: you can have JavaScript to open a new window without some elements, window.open(...).
--SA
Sergey Alexandrovich Kryukov 6-Feb-12 4:01am    
Everything else depends on the browser application...
--SA

1 solution

Running some application as a child process is generally a very bad thing. Processes are well isolated from each other; so you won't have sufficient control over the child process; your parent process and child process won't behave like integrated in one application.

Also, you cannot know for sure what Web browser is used by your user.

So, consider much better alternative: host a WebBrowser control in your MFC application. It comes without any additional controls like address bar or anything like that.

Start here:
http://msdn.microsoft.com/en-us/library/ie/aa752046%28v=vs.85%29.aspx[^].

—SA
 
Share this answer
 
Comments
Espen Harlinn 6-Feb-12 6:32am    
Good reply, my 5
Sergey Alexandrovich Kryukov 6-Feb-12 9:51am    
Thank you, Espen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900