BROWSEINFO stBrowseInfo;
ITEMIDLIST *pstItemIdList;
TCHAR acFilePath[_MAX_PATH];
// open select directory dialog
memset(&stBrowseInfo, 0, sizeof(BROWSEINFO));
stBrowseInfo.ulFlags = BIF_RETURNONLYFSDIRS;
pstItemIdList = SHBrowseForFolder(&stBrowseInfo);
SHGetPathFromIDList(pstItemIdList, acFilePath);
AfxMessageBox(acFilePath);
浏览文件夹
最新推荐文章于 2010-08-18 16:54:00 发布