Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为 Windows 资源管理器创建了简单的资源管理器栏扩展。如何从我的栏访问资源管理器窗口中的文件列表?以及如何更改资源管理器窗口中的当前文件夹?
如果我没记错的话,这就是它的工作原理。您的 bar 对象应该实现IObjectWithSite并接收一个站点指针。查询,IServiceProvider调用QueryService请求IShellBrowser接口。这是您访问其他所有感兴趣的内容的门户。例如IShellBrowser::QueryActiveShellView获取当前显示的视图;IShellBrowser::BrowseObject导航到不同的文件夹。
IObjectWithSite
IServiceProvider
QueryService
IShellBrowser
IShellBrowser::QueryActiveShellView
IShellBrowser::BrowseObject