{I+=codeWee;} |
LPITEMIDLIST pidlBrowse; BROWSEINFO BRinfo; BRinfo.hwndOwner = m_hWnd; BRinfo.pidlRoot = NULL; BRinfo.pszDisplayName = NULL; BRinfo.lpszTitle = "Select Folder"; BRinfo.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE; BRinfo.lpfn = NULL; BRinfo.lParam = NULL; pidlBrowse = SHBrowseForFolder(&BRinfo); if (pidlBrowse != NULL) { char szPath[255]; SHGetPathFromIDList(pidlBrowse, szPath); // ... }