1// Windows/CommonDialog.h 2 3#ifndef __WINDOWS_COMMON_DIALOG_H 4#define __WINDOWS_COMMON_DIALOG_H 5 6#include "../Common/MyString.h" 7 8namespace NWindows { 9 10bool MyGetOpenFileName(HWND hwnd, LPCWSTR title, 11 LPCWSTR initialDir, // can be NULL, so dir prefix in filePath will be used 12 LPCWSTR filePath, // full path 13 LPCWSTR filterDescription, // like "All files (*.*)" 14 LPCWSTR filter, // like "*.exe" 15 UString &resPath 16 #ifdef UNDER_CE 17 , bool openFolder = false 18 #endif 19); 20 21} 22 23#endif 24