简体   繁体   English

如何使用自定义面板扩展Windows资源管理器

[英]How to extend Windows Explorer with a custom panel

I would like to extend Windows Explorer with a custom bottom or right panel (like the image below). 我想用自定义的底部或右侧面板扩展Windows资源管理器(如下图所示)。

From what I have been reading, I think I should start by implementing IShellView. 从我一直在阅读,我想我应该从实现IShellView开始。 Is this correct? 这个对吗? Can anyone give me a few pointers how to do this in .net? 任何人都可以给我一些指示如何在.net中执行此操作?

Thanks 谢谢

在此输入图像描述

You must implement IDockingWindow. 您必须实现IDockingWindow。 Result will be look like this: 结果将如下所示:

在此输入图像描述

One of the scenario: 其中一个场景:

1) Create BHO with IObjectWithSite support. 1)使用IObjectWithSite支持创建BHO。

2) Inside IObjectWithSite.SetSite call Site.QueryInterface(IServiceProvider, ServiceProvider) 2)在IObjectWithSite.SetSite内部调用Site.QueryInterface(IServiceProvider,ServiceProvider)

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

4) Then call DockingWindowFrame.AddToolbar with your object that implements IDockingWindow and IObjectWithSite. 4)然后使用实现IDockingWindow和IObjectWithSite的对象调用DockingWindowFrame.AddToolbar。

5) Inside IObjectWithSite of your object call QueryInterface(IDockingWindowSite, DockingWindowSite) 5)你的对象内部IObjectWithSite调用QueryInterface(IDockingWindowSite,DockingWindowSite)

Other detail you can find in the MSDN. 您可以在MSDN中找到其他详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM