通过调用
LPITEMIDLIST SHBrowseForFolder(LPBROWSEINFO lpbi);
函数来显示文件夹浏览器。
参数lpbi是一个指向BROWSEINFO结构的指针,BROWSEINFO结构原型参考MSDN。如果用户选择了OK按钮,返回一个IPEMIDLIST指针,把这个值传递给SHGetPathFromIDList函数就可以得到选择的文件夹的路径。如果选择Cancel按钮,此函数返回NULL。 rel="stylesheet" type="text/css" href="../../../css/ie4.css" /> rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" /> rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
rel="stylesheet" type="text/css" href="../../../css/ie4.css" /> rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" /> rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
rel="stylesheet" type="text/css" href="../../../css/ie4.css" />
rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" />
rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
rel="stylesheet" type="text/css" href="../../../css/ie4.css" />
rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" />
rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
LPITEMIDLIST SHBrowseForFolder(LPBROWSEINFO lpbi);
函数来显示文件夹浏览器。
参数lpbi是一个指向BROWSEINFO结构的指针,BROWSEINFO结构原型参考MSDN。如果用户选择了OK按钮,返回一个IPEMIDLIST指针,把这个值传递给SHGetPathFromIDList函数就可以得到选择的文件夹的路径。如果选择Cancel按钮,此函数返回NULL。 rel="stylesheet" type="text/css" href="../../../css/ie4.css" /> rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" /> rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
rel="stylesheet" type="text/css" href="../../../css/ie4.css" /> rel="stylesheet" type="text/css" href="../../../css/inetsdk.css" /> rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />