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. HTML标签_Form

    理解HTML是如何跳转到java程序中去的:Form常用HTML标签的作用<body> <form action="servlet/UploadServlet" ...

  2. java新手笔记8 包

    1.main函数 public class MainParam { //考察main 方法的参数 args //运行时可以传入参数 参数类型 String public static void mai ...

  3. Eclipse 和 Intellij idea 快捷键的区别

    描述 Eclipse IntelliJ 代码补全 Ctrl+space ctrl+space 打开类或者接口 (两个IDE都支持使用“驼峰字符”前缀的方式来过滤查找列表,进而轻松完成搜索:比如:可以使 ...

  4. Speak softly love

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

  5. ffmpeg只使用h264编译参数

    --disable-everything --enable-decoder=h264 --enable-demuxer=h264 --enable-parser=h264 --disable-ffpl ...

  6. scala - 从合并两个Map说开去 - foldLeft 和 foldRight 还有模式匹配

    开发中遇到需求:合并两个Map集合对象(将两个对应KEY的值累加) 先说解决方案: ( map1 )) ) } 这特么什么鬼  (╯‵□′)╯""┻━┻☆))>○<)  ...

  7. YII 开启URL伪静态

    1.开启apache的mode_rewrite模块 去掉LoadModule rewrite_module modules/mod_rewrite.so前的“#”符号 确保<Directory ...

  8. 『奇葩问题集锦』Malformed lock file found: /var/cache/dnf/metadata_lock.pid.

    Malformed lock file found: /var/cache/dnf/metadata_lock.pid.Ensure no other dnf process is running a ...

  9. MarkDown教程

    MarkDown笔记 在线编辑器其他教程 [1.标题] 标题1 标题1=== 标题2 标题2--- 标题3 1 2 3 4 5 6 7 7 #1 ##2 ###3 ####4 #####5 ##### ...

  10. 在Linux下不使用密码远程登陆其他Linux

    有时需要再一台Linux上登陆其他Linux服务器,通常可以直接使用SSH命令,加入两台服务器一台服务器A,IP地址192.168.1.2,另一台服务器B,IP地址192.168.1.3,如果想从A服 ...