How might I obtain an IShellFolder from the active IShellView?

六眼飞鱼酱① 提交于 2019-12-12 04:28:35

问题


I'm trying to enhance a CFileDialog, and we're using the older version of it (the non-vista one that doesn't use IFileDialog). The older one does allow me to obtain an IShellBrowser, as well as (from that) the active IShellView.

What I cannot seem to come up with is a way to get "What IShellFolder does that IShellView refer to?"

Equally useful would be "What is the current folder that IShellBrowser has made active?"


回答1:


I think I may have solved it in a round about fashion: I'm using CDM_GETFOLDERIDLIST, which returns the current PIDL, which is all I need. :D



来源:https://stackoverflow.com/questions/2247567/how-might-i-obtain-an-ishellfolder-from-the-active-ishellview

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