在IE或其他浏览器中隐藏导航路径 [英] Hide the navigation path in IE or other browsers

查看:190
本文介绍了在IE或其他浏览器中隐藏导航路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用MFC应用程序,根据某些条件,我将在IE或系统上存在的其他浏览器中显示本地html页面(带有自定义消息).

我正在使用ShellExecute函数打开浏览器.我能够打开本地html页面和所有页面.但是我不想在浏览器的地址栏中显示本地文件的路径.我想显示本地页面,但不显示地址栏中的路径.

我一直在网上寻找一些指针,但没有找到任何:(

关于此的任何帮助或指示都会有所帮助.

请做有需要的事情.

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.

推荐答案

将某些应用程序作为子进程运行通常是很不好的事情.流程之间相互隔离良好;因此您将无法对子进程进行足够的控制;您的父进程和子进程不会像集成在一个应用程序中那样运行.

另外,您不能确定用户使用哪种Web浏览器.

因此,请考虑更好的替代方法:在MFC应用程序中托管WebBrowser控件.它没有任何其他控件,例如地址栏或诸如此类.

从这里开始:
http://msdn.microsoft.com/en-us/库/ie/aa752046%28v=vs.85%29.aspx [
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


这篇关于在IE或其他浏览器中隐藏导航路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆