• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // BrowseDialog.h
2 
3 #ifndef ZIP7_INC_BROWSE_DIALOG_H
4 #define ZIP7_INC_BROWSE_DIALOG_H
5 
6 #include "../../../Windows/CommonDialog.h"
7 
8 bool MyBrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR path, UString &resultPath);
9 
10 struct CBrowseFilterInfo
11 {
12   UStringVector Masks;
13   UString Description;
14 };
15 
16 struct CBrowseInfo: public NWindows::CCommonDialogInfo
17 {
18   bool BrowseForFile(const CObjectVector<CBrowseFilterInfo> &filters);
19 };
20 
21 
22 /* CorrectFsPath removes undesirable characters in names (dots and spaces at the end of file)
23    But it doesn't change "bad" name in any of the following cases:
24      - path is Super Path (with \\?\ prefix)
25      - path is relative and relBase is Super Path
26      - there is file or dir in filesystem with specified "bad" name */
27 
28 bool CorrectFsPath(const UString &relBase, const UString &path, UString &result);
29 
30 bool Dlg_CreateFolder(HWND wnd, UString &destName);
31 
32 #endif
33