BCGControlBar Pro for MFC
BOOL CBCGPShellManager::BrowseForFolder ( CString &  strOutFolder,
CWnd *  pWndParent = NULL,
LPCTSTR  lplszInitialFolder = NULL,
LPCTSTR  lpszTitle = NULL,
UINT  ulFlags = BIF_RETURNONLYFSDIRS,
LPINT  piFolderImage = NULL,
UINT  nBrowseFolderDlgStyle = BCGP_FOLDER_PICKER_STANDARD 
)

Displays a dialog box that enables the user to select a Shell folder.

Returns
Nonzero if the user has selected a folder from a dialog box; otherwise 0.

Call this function to display a dialog box that enables the user to select a Shell folder.

Parameters
strOutFolderString that receives the selected folder.
pWndParentA pointer to a displayed dialog parent window.
lplszInitialFolderSpecifies the initialy selected folder.
lpszTitleA dialog box title.
ulFlagsSee BROWSEINFO for the detailded description.
piFolderImageContains the image index of the selected folder in the system image list.
nBrowseFolderDlgStyleSpecifies "Folder" dialog style: BCGP_FOLDER_PICKER_STANDARD, BCGP_FOLDER_PICKER_THEMED or BCGP_FOLDER_PICKER_FILEDLG.