http://pinvoke.net/default.aspx/Interfaces.DWebBrowserEvents2

[ComImport, SuppressUnmanagedCodeSecurity, InterfaceType(ComInterfaceType.InterfaceIsIDispatch), Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D")]
public interface DWebBrowserEvents2
{
      [DispId(0x66)]
      void StatusTextChange([MarshalAs(UnmanagedType.BStr)] string Text);
      [DispId(0x6c)]
      void ProgressChange(int Progress, int ProgressMax);
      [DispId(0x69)]
      void CommandStateChange(int Command, [MarshalAs(UnmanagedType.VariantBool)] bool Enable);
      [DispId(0x6a)]
      void DownloadBegin();
      [DispId(0x68)]
      void DownloadComplete();
      [DispId(0x71)]
      void TitleChange([MarshalAs(UnmanagedType.BStr)] string Text);
      [DispId(0x70)]
      void PropertyChange([MarshalAs(UnmanagedType.BStr)] string szProperty);
      [DispId(250)]
      void BeforeNavigate2([MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In] ref object URL, [In] ref object Flags, [In] ref object TargetFrameName, [In] ref object PostData, [In] ref object Headers, [In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel);
      [DispId(0xfb)]
      void NewWindow2([In, Out, MarshalAs(UnmanagedType.IDispatch)] ref object ppDisp, [In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel);
      [DispId(0xfc)]
      void NavigateComplete2([MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In] ref object URL);
      [DispId(0x103)]
      void DocumentComplete([MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In] ref object URL);
      [DispId(0xfd)]
      void OnQuit();
      [DispId(0xfe)]
      void OnVisible([MarshalAs(UnmanagedType.VariantBool)] bool Visible);
      [DispId(0xff)]
      void OnToolBar([MarshalAs(UnmanagedType.VariantBool)] bool ToolBar);
      [DispId(0x100)]
      void OnMenuBar([MarshalAs(UnmanagedType.VariantBool)] bool MenuBar);
      [DispId(0x101)]
      void OnStatusBar([MarshalAs(UnmanagedType.VariantBool)] bool StatusBar);
      [DispId(0x102)]
      void OnFullScreen([MarshalAs(UnmanagedType.VariantBool)] bool FullScreen);
      [DispId(260)]
      void OnTheaterMode([MarshalAs(UnmanagedType.VariantBool)] bool TheaterMode);
      [DispId(0x106)]
      void WindowSetResizable([MarshalAs(UnmanagedType.VariantBool)] bool Resizable);
      [DispId(0x108)]
      void WindowSetLeft(int Left);
      [DispId(0x109)]
      void WindowSetTop(int Top);
      [DispId(0x10a)]
      void WindowSetWidth(int Width);
      [DispId(0x10b)]
      void WindowSetHeight(int Height);
      [DispId(0x107)]
      void WindowClosing([MarshalAs(UnmanagedType.VariantBool)] bool IsChildWindow, [In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel);
      [DispId(0x10c)]
      void ClientToHostWindow([In, Out] ref int CX, [In, Out] ref int CY);
      [DispId(0x10d)]
      void SetSecureLockIcon(int SecureLockIcon);
      [DispId(270)]
      void FileDownload([In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel);
      [DispId(0x10f)]
      void NavigateError([MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In] ref object URL, [In] ref object Frame, [In] ref object StatusCode, [In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel);
      [DispId(0xe1)]
      void PrintTemplateInstantiation([MarshalAs(UnmanagedType.IDispatch)] object pDisp);
      [DispId(0xe2)]
      void PrintTemplateTeardown([MarshalAs(UnmanagedType.IDispatch)] object pDisp);
      [DispId(0xe3)]
      void UpdatePageStatus([MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In] ref object nPage, [In] ref object fDone);
      [DispId(0x110)]
      void PrivacyImpactedStateChange([MarshalAs(UnmanagedType.VariantBool)] bool bImpacted);
      [DispId(0x111)]
      void NewWindow3([In, Out, MarshalAs(UnmanagedType.IDispatch)] ref object ppDisp, [In, Out, MarshalAs(UnmanagedType.VariantBool)] ref bool Cancel, uint dwFlags, [MarshalAs(UnmanagedType.BStr)] string bstrUrlContext, [MarshalAs(UnmanagedType.BStr)] string bstrUrl);
}

WPF WebBroswer可以用到的接口的更多相关文章

  1. 在WPF应用程序中利用IEditableObject接口实现可撤销编辑的对象

    这是我辅导的一个项目开发中的例子,他们是用WPF做界面开发,在学习了如何使用MVVM来实现界面与逻辑的分离,并且很好的数据更新之后,有一个疑问就是,这种双向的数据更新确实很不错,但如果我们希望用户可以 ...

  2. WPF学习总结1:INotifyPropertyChanged接口的作用

    在代码中经常见到这个接口,它里面有什么?它的作用是什么?它和依赖属性有什么关系? 下面就来总结回答这三个问题. 1.这个INotifyPropertyChanged接口里就一个PropertyChan ...

  3. WPF 格式化输出- IValueConverter接口的使用

    以前在用ASP.NET 做B/S系统时,可以方便地在GRIDVIEW DATAList等数据控件中,使用自定义的代码逻辑,比如 使用 <%# GetBalance(custID) %> 这 ...

  4. WPF 格式化输出- IValueConverter接口的使用 datagrid列中的值转换显示

    以前在用ASP.NET 做B/S系统时,可以方便地在GRIDVIEW DATAList等数据控件中,使用自定义的代码逻辑,比如 使用 <%# GetBalance(custID) %> 这 ...

  5. WPF - 属性系统 (3 of 4)

    依赖项属性元数据 在前面的章节中,我们已经介绍了WPF依赖项属性元数据中的两个组成:CoerceValueCallback回调以及PropertyChangedCallback.而在本节中,我们将对其 ...

  6. WPF DataGrid常用属性记录

    WPF DataGrid常用属性记录 组件常用方法: BeginEdit:使DataGrid进入编辑状态. CancelEdit:取消DataGrid的编辑状态. CollapseRowGroup:闭 ...

  7. WPF快速入门系列(5)——深入解析WPF命令

    一.引言 WPF命令相对来说是一个崭新的概念,因为命令对于之前的WinForm根本没有实现这个概念,但是这并不影响我们学习WPF命令,因为设计模式中有命令模式,关于命令模式可以参考我设计模式的博文:h ...

  8. Server-Side UI Automation Provider - WPF Sample

    Server-Side UI Automation Provider - WPF Sample 2014-09-14 引用程序集 自动化对等类 WPF Sample 参考 引用程序集 返回 UIAut ...

  9. 八,WPF 命令

    WPF命令模型 ICommand接口 WPF命令模型的核心是System.Windows.Input.ICommand接口,该接口定义了命令的工作原理,它包含了两个方法和一个事件: public in ...

随机推荐

  1. groupBy

    public List groupBy(List list,String flag,String... sortName) throws Exception{ Map<String,List&l ...

  2. UIAlertController基本使用

      从ios8之后,系统的弹框 UIAlertView 与 UIActionSheet 两个并在一了起, 使用了一个新的控制器叫 UIAlertController UIAlertController ...

  3. ios开发,地图标注聚集。搜索标注title功能

    最近在做地图功能,要实现的就是地图标注聚集,还有搜索地图 地图标注通常都是大头针.如果地图缩小到一定范围的时候,会显示密密麻麻的大头针.这样会显的难看 所以设计了一定区域范围内的大头针,缩小的时候给聚 ...

  4. ORACLE 关连更新 update select

    总结:  关键的地方是where 语句的加入. 在11G中, 如果不加11G , 或造成除匹配的行数更新为相应的值之后, 其余的会变成负数. 所以, 测试的办法就是:  先查看需要更新的数量即连接的数 ...

  5. requirejs下载与配置

    写在开始: requirejs有中文版api文档,可以访问http://www.requirejs.cn/home.html 下载requirejs 访问http://www.requirejs.cn ...

  6. node.js 小爬虫 imooc 2016.03.06

    爬虫目标:获取http://www.imooc.com/learn/348网页中的章节标题和视频信息. var http = require('http'); var cheerio = requir ...

  7. Speak softly love

    Speak softly love and hold me warm against your heart 柔声诉情,拥我在你暖暖的心上 I feel your words, the tender t ...

  8. 彻底理解Gradle的任务

    这是从我个人博客中复制过来的,没有重新进行排版,为了更好的阅读效果大家可以去我网站上阅读,地址:http://coolshell.info/blog/2015/07/gradle-tasks-guid ...

  9. 【BZOJ1042】【DP + 容斥】[HAOI2008]硬币购物

    Description 硬币购物一共有4种硬币.面值分别为c1,c2,c3,c4.某人去商店买东西,去了tot次.每次带di枚ci硬币,买si的价值的东西.请问每次有多少种付款方法. Input 第一 ...

  10. Sdut 2409 The Best Seat in ACM Contest(山东省第三届ACM省赛 H 题)(模拟)

    题目描述 Cainiao is a university student who loves ACM contest very much. It is a festival for him once ...