Home | History | Annotate | Download | only in FileManager
      1 // BrowseDialog.h
      2 
      3 #ifndef __BROWSE_DIALOG_H
      4 #define __BROWSE_DIALOG_H
      5 
      6 #include "../../../Common/MyString.h"
      7 
      8 bool MyBrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR path, UString &resultPath);
      9 bool MyBrowseForFile(HWND owner, LPCWSTR title, LPCWSTR path, LPCWSTR filterDescription, LPCWSTR filter, UString &resultPath);
     10 
     11 /* CorrectFsPath removes undesirable characters in names (dots and spaces at the end of file)
     12    But it doesn't change "bad" name in any of the following caes:
     13      - path is Super Path (with \\?\ prefix)
     14      - path is relative and relBase is Super Path
     15      - there is file or dir in filesystem with specified "bad" name */
     16 
     17 bool CorrectFsPath(const UString &relBase, const UString &path, UString &result);
     18 
     19 bool Dlg_CreateFolder(HWND wnd, UString &destName);
     20 
     21 #endif
     22