//使用路径选择窗口,控件
BROWSEINFO browse; ZeroMemory(&browse,sizeof(browse));
CString m_strPath; browse.hwndOwner = NULL; browse.pszDisplayName = m_strPath.GetBuffer(MAX_PATH); browse.lpszTitle = "请您选择一个目录 ";
LPITEMIDLIST lpItem = SHBrowseForFolder(&browse); if(lpItem == NULL) return ;
m_strPath.ReleaseBuffer(); if(SHGetPathFromIDList(lpItem,m_strPath.GetBuffer(MAX_PATH)) == false) return;
//------------------------------------------------------------------------------ // [2/24/2011 Hjz] // 设定,相关的选定目录。 //------------------------------------------------------------------------------ m_strPath.ReleaseBuffer();
//使用路径选择窗口,控件