Hi all,
I'm trying to get a callback function working with the SHBrowseForFolder dialog in order to set the default folder but I'm not sure how to call it.
// Fill in the BROWSEINFO structure.
bi.hwndOwner = hWnd;
bi.pidlRoot = pidlMyComputer;
bi.pszDisplayName = buf;
bi.lpszTitle = prompt;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_RETURNFSANCESTORS;
bi.lpfn = BrowseCallbackProc; // error???
bi.lParam = (LPARAM)buf;
I've seen similar code working in other projects
I'm trying to get a callback function working with the SHBrowseForFolder dialog in order to set the default folder but I'm not sure how to call it.
// Fill in the BROWSEINFO structure.
bi.hwndOwner = hWnd;
bi.pidlRoot = pidlMyComputer;
bi.pszDisplayName = buf;
bi.lpszTitle = prompt;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_RETURNFSANCESTORS;
bi.lpfn = BrowseCallbackProc; // error???
bi.lParam = (LPARAM)buf;
I've seen similar code working in other projects