分享

浏览器的定制与扩展

 xrzs 2009-09-14
浏览器的定制与扩展
2007-09-24 00:04

About the Browser:This section explains the architecture of Microsoft Internet Explorer 4.0 and later and provides information you will find helpful when reusing these components.

 

 

WebBrowser Customization
WebBrowser Customization: This tutorial shows you several ways to customize the "out of the box" behavior and appearance of the WebBrowser Control. You'll see how to use the advanced hosting interfaces IDocHostUIHandler, IDocHostUIHandler2, IDocHostShowUI, and ICustomDoc. This article will also look at other customization techniques such as download control through handling DISPID_AMBIENT_DLCONTROL in the host's IDispatch implementation, and using IHostDialogHelper.——
WebBrowser Customization (Part 2):Part 1 of this tutorial introduced several of the standard hosting interfaces for the WebBrowser Control: IDocHostUIHandler, IDocHostShowUI, and ICustomDoc, to name a few. Part 2 of this article explains how to retrieve a reference to the client site while processing IPersistMoniker::Load, and how to use the IServiceProvider and IOleCommandTarget interfaces to send messages between the Active document (DocObject) and its host.
浏览器集成教学 自定义浏览器(Updated for Windows XP SP2) :1.前提和需求 2.介绍 3.浏览器自定义架构 4.IDocHostUIHandler 5.IDocHostUIHandler2 6.GetOptionKeyPath 和 GetOverrideKeyPath比较 7.控制导航 8.IDocHostShowUI 9.控制下载和执行 10.IHostDialogHelper 11.控制新的窗口 12.显示证书对话框(New!) 13.信息栏(New!) 14.结论
在MFC应用中深入定制WebBrowser控件(转):正如VC ++ 6.0的演示程序MFCIE所示,用应用程序向导创建一个具有Web导航能力的MFC应用可谓轻而易举。本文在此基础上,进一步讨论两个问题:资源自包含的实现,上下文菜单以及快捷键的完全控制。
自定义浏览器控件同自动化浏览器相比,自动化浏览器控件(WebBrowser Control) 在应用程序中更加常用。从Outlook的预览窗格到Maxthon这样的基于IE引擎的浏览器,从无界面的HTML分析器到Norton Antivirusd的主界面,浏览器控件在众多领域被用作各种各样的用途。这也使得有必要根据具体的用户需求自定义浏览器控件的行为。
Advanced customization of WebBrowser Control in Dialog based app:
Shows how to customize the Microsoft WebBrowser control in a dialog based app to allow custom context menus, message boxes, windows, modal dialogs and C++ function calls from JavaScript to your application using window.external.
浏览器的定制与扩展
:1。前言 2。在MFC中使用浏览器 3。怎样扩展或定制浏览器 4。定制鼠标右键弹出出菜单 5。实现脚本扩展(很重要的external接口) 6。C++代码中如何调用网页脚本中的函数 7。定制消息框的标题 8。怎样定制、修改浏览器向Web服务器发送的HTTP请求头 9。怎样修改浏览器标识 10去掉讨厌的异常警告 11怎样处理浏览器内的拖放 12怎样禁止网页元素的选取 13其它
IE 控件一些高级使用方法
:1、如何显示内存中的 HTML 网页;2、如何屏蔽掉鼠标右键的上下文菜单;3、如何扩展 HTML 中的脚本(external)对象;4、如何显示 HTML 样式的对话窗;5、如何执行 HTML 脚本;
WebBrowser control:I overrode PreTranslateMessage() and in this override I pasted in VC7 MFC's code for CHtmlView::PreTranslateMessage. With a few changes to make it compile I was essentially using VC7 MFC's version of this method in an otherwise VC6 MFC app. This fixed everything!
ATL 实现定制的 IE 浏览器栏、工具栏和桌面工具栏: 1.概念 2.原理 基本band 对象 必须实现的 COM 接口     IPersistStream     IObjectWithSite     IDeskBand、IDockingWindow、 IOleWindow 选择实现的 COM 接口  Band 对象注册 3ATL 实现
Cookie Spy
:Creating a CookieSpy explorer bar with ATL

WebBrowser Automation
Automate the Active Windows Explorer or Internet Explorer Window: An article on finding out an active IE or Explorer window or creating one and controlling it.(创建和自动化Internet Explorer和资源管理器窗口 中文版)
Connecting to Running Instances of Internet Explorer: There has been always a problem connecting to web browsers, Either you need to write Browser Helper Object or something which browser needs to instantiate. But I found all the other methods had one or other way bug in it. Decided to find simple and bug free way, And came across this ShellWindows interface, which is used by Shell to keep track all the shell browsers including Shell Folders and Internet explorers I Believe shell uses name spaces to keep track of this windows.
Connecting to a running instance of Internet Explorer:There are some methods to connect to a running instance of IE. This one is how to connect through the ROT (Running Object Table).
How to connect to a running instance of Internet Explorer: It is possible to connect to a running instance of Internet Explorer version 4.0 or later using the SHDocVw.ShellWindows collection.
Keeping an Eye on Your Browser by Monitoring Internet Explorer 4.0 Events: Since the introduction of the WebBrowser control in Microsoft® Internet Explorer 3.0, creating Internet-aware applications has become fairly simple. All you have to do to incorporate Internet browsing into your application is host the WebBrowser control. With this control, you can navigate to any URL, go back or forward in the history list, or navigate directly to the user's home page. You can do most of the things that the Internet Explorer 4.0 browser application can do. Through the WebBrowser control you can also control Internet Explorer 4.0 using automation. (如何对webbrowser和IE编程 系列 中文版)
浏览器集成教学--在浏览器程序中添加宏支持: 这个教程提供在浏览器程序中添加宏支持的方法,你会看到如何给MFC的程序添加宏支持。这篇文章也讨论了如何扩展VC6中的CHtmlView的功能,如何实现MDI结构的浏览器,以及如何分析DHTML的文档结构。
实现和IE浏览器交互的几种方法的介绍: 1.引言 2.IE实例遍历实现 3.和IE相绑定的DLL的实现 4.微软的HTML文档对象模型和应用分析 5.小结
Easiest way to display a webpage
从内嵌的IE控件里访问外部框架的方法
请问非BHO的程序,如何获取IE浏览器下载一个网页的事件?
ATL拦截IE WebBrowser2的Document事件
请问如何获得IE(进程)中的IWebBrowser2的接口
Is there a way to retrieve the URL from the Internet Explorer address bar programmatically?
请问如何在html中调用vc中的函数?
IE 控件IWebBrowser2->navigate2方法在shellwindows下面的问题:我用ShellWindows获得了已经打开的IE的IWebBrowser2接口,调用IWebBrowser2->GoHome是有用的,但是调用IWebBrowser2->navigate2没反应

Some Important IE4 Knowledge Base Articles
Q180366 HOWTO: Determine When a Page Is Done Loading in WebBrowser Ctrl
Q180365 INFO: Advantages of Hosting WebBrowser Control Instead of MSHTML

Q179421
FIX: WebBrowser Control in CFormView Does Not Repaint Properly
Q179230 FILE: IEHelper-Attaching to IE4 using a Browser Helper Object
Q177269 PRB: Internet Explorer 4 Keeps Active Document Servers Running
Q177241 HOWTO: Adding to the Standard Context Menus of the WebBrowser
Q176789 PRB: Permission Denied Accessing Web Browser Control in HTML
Q175910 BUG: IDocHostShowUI::ShowHelp Not Called for IE4/MSHTML Host
Q175513 FILE: Invoke Find, View Source, Options dialogs for WebBrowser
Q175502 PRB: Tabbing Broken in WebBrowser Hosted in MFC Regular DLL
Q165074 PRB: Keystroke Problems in CView/CWnd WebBrowser Control
Q163282 HOWTO: Using Forward & Back Buttons for Web Browser Control
Q156693 FILE: IEZOOM.EXE Changes the Font Size of WebBrowser Control

bho
Browser Helper Object ("plug-in") for IE: This page has source code for a minimal C++ Browser Helper Object for Internet Explorer. It intercepts keyboard and mouse events, and changes the page's background color.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多