showfilesオプションを指定してFDLog Browse (OpenPath) ダイアログボックスを開きます。
bool BrowseForFolder( string * pstrPath, HWND hWndParent, LPCSTR lpcszTitle, DWORD dwCntrl )
フォルダが選択されている場合はtrue、キャンセルボタンをクリックまたはファイルをダブルクリックする場合はfalseになります。
EX1
void BrowseForFolder_ex() { string strPath = GetAppPath(); if( BrowseForFolder(&strPath, NULL, NULL, BROWSEFOLDER_SHOW_FILES) ) out_str(strPath); else out_str("please select a folder"); }
origin.h