git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@283 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
spacy51 2008-01-10 17:06:23 +00:00
parent 5a80ca34fc
commit 87e1f085b0
1 changed files with 2 additions and 1 deletions

View File

@ -267,10 +267,11 @@ CString Directories::browseForDir(CString title)
bi.hwndOwner = m_hWnd; bi.hwndOwner = m_hWnd;
bi.lpszTitle = title; bi.lpszTitle = title;
bi.pidlRoot = 0; bi.pidlRoot = 0;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_EDITBOX | BIF_NEWDIALOGSTYLE; bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_USENEWUI;
bi.lpfn = browseCallbackProc; bi.lpfn = browseCallbackProc;
bi.lParam = (LPARAM)(LPCTSTR)initialFolderDir; bi.lParam = (LPARAM)(LPCTSTR)initialFolderDir;
CoInitialize( NULL ); // required by BIF_USENEWUI
pidl = SHBrowseForFolder(&bi); pidl = SHBrowseForFolder(&bi);
if(pidl) { if(pidl) {