How to extend Windows Explorer with a custom panel

久未见 提交于 2019-12-29 02:05:10

问题


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

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?

Thanks


回答1:


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

One of the scenario:

1) Create BHO with IObjectWithSite support.

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

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

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

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

Other detail you can find in the MSDN.



来源:https://stackoverflow.com/questions/22101829/how-to-extend-windows-explorer-with-a-custom-panel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!