第二个我找出来了~
程序代码:
// TODO: Add your control notification handler code here BROWSEINFO bi={0}; bi.hwndOwner=this->m_hWnd; bi.lpszTitle=" Select Folder ... "; LPITEMIDLIST pIIL=SHBrowseForFolder(&bi); if(pIIL) { CString FPath; SHGetPathFromIDList(pIIL,FPath.GetBuffer(256)); FPath.ReleaseBuffer(); IMalloc *pmal=0; if(SHGetMalloc(&pmal)==S_OK) { pmal->Free(pIIL); pmal->Release(); } //AfxMessageBox(FPath); if (FPath !="") { m_TargetPath.SetWindowText(FPath); OutputFilePath=FPath; } }
第三个我也找出来了~
enum modes{NONE=0,PATHTEXT=16,NEWFOLDER=64}; bi.ulFlags=NEWFOLDER;