1 /////////////////////////////////////////////////////////////////////////////
2 // WinMerge: an interactive diff/merge utility
3 // Copyright (C) 1997-2006 Thingamahoochie Software
5 // SPDX-License-Identifier: GPL-2.0-or-later
6 /////////////////////////////////////////////////////////////////////////////
8 * @file FileOrFolderSelect.h
10 * @brief Declaration of the file and folder selection routines.
14 #include "UnicodeString.h"
16 bool SelectFile(HWND parent, String& path, bool is_open = true,
17 LPCTSTR initialPath = nullptr, const String& stitle = _T(""),
18 const String& sfilter = _T(""), LPCTSTR defaultExtension = nullptr);
20 bool SelectFolder(String& path, LPCTSTR root_path = nullptr,
21 const String& title = _T(""),
22 HWND hwndOwner = nullptr);
24 bool SelectFileOrFolder(HWND parent, String& path, LPCTSTR root_path = nullptr);