如何使用自定义面板扩展Windows资源管理器 [英] How to extend Windows Explorer with a custom panel

查看:694
本文介绍了如何使用自定义面板扩展Windows资源管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用一个自定义的底部或右侧面板中(像下面的图片)扩展Windows资源管理器。

I would like to extend Windows Explorer with a custom bottom or right panel (like the image below).

这是我一直在读什么,我想我应该通过实施IShellView开始。它是否正确?谁能给我一些指点如何做到这一点的.NET?

From what I have been reading, I think I should start by implementing IShellView. Is this correct? Can anyone give me a few pointers how to do this in .net?

感谢

推荐答案

您必须实现了IDockingWindow。结果会是这样的:

You must implement IDockingWindow. Result will be look like this:

其中的情景:

1)的IObjectWithSite支持创建BHO

1) Create BHO with IObjectWithSite support.

2)内部IObjectWithSite.SetSite调用Site.QueryInterface(IServiceProvider的,的ServiceProvider)

2) Inside IObjectWithSite.SetSite call Site.QueryInterface(IServiceProvider, ServiceProvider)

3)然后调用ServiceProvider.QueryService(SID_SShellBrowser, IDockingWindowFrame,DockingWindowFrame)。

3)Then call ServiceProvider.QueryService(SID_SShellBrowser, IDockingWindowFrame, DockingWindowFrame).

4),然后用你的对象实现了IDockingWindow和接口IObjectWithSite调用DockingWindowFrame.AddToolbar。

4) Then call DockingWindowFrame.AddToolbar with your object that implements IDockingWindow and IObjectWithSite.

5)你的对象调用QueryInterface的内部接口IObjectWithSite(IDockingWindowSite,DockingWindowSite)

5) Inside IObjectWithSite of your object call QueryInterface(IDockingWindowSite, DockingWindowSite)

其他细节可以在MSDN找到。

Other detail you can find in the MSDN.

这篇关于如何使用自定义面板扩展Windows资源管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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