minor
This commit is contained in:
parent
7c2ea7970d
commit
68709753ec
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue