如何从活动的IShellView获取IShellFolder? [英] How might I obtain an IShellFolder from the active IShellView?

查看:110
本文介绍了如何从活动的IShellView获取IShellFolder?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试增强CFileDialog,我们正在使用它的旧版本(不使用IFileDialog的非vista版本)。较老的版本确实允许我获取IShellBrowser以及活动的IShellView(从中获取)。

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.

我似乎无法想到的是一种获取方法 IShellView指的是IShellFolder?

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

同样有用的是 IShellBrowser激活的当前文件夹是什么?

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

推荐答案

我认为我可能已经在某种程度上解决了它:我正在使用CDM_GETFOLDERIDLIST,它返回当前的PIDL,这是我所需要的。 :D

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

这篇关于如何从活动的IShellView获取IShellFolder?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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