1370b324cSopenharmony_ci// Windows/CommonDialog.h 2370b324cSopenharmony_ci 3370b324cSopenharmony_ci#ifndef ZIP7_INC_WINDOWS_COMMON_DIALOG_H 4370b324cSopenharmony_ci#define ZIP7_INC_WINDOWS_COMMON_DIALOG_H 5370b324cSopenharmony_ci 6370b324cSopenharmony_ci#include "../Common/MyString.h" 7370b324cSopenharmony_ci 8370b324cSopenharmony_cinamespace NWindows { 9370b324cSopenharmony_ci 10370b324cSopenharmony_cistruct CCommonDialogInfo 11370b324cSopenharmony_ci{ 12370b324cSopenharmony_ci /* (FilterIndex == -1) means no selected filter. 13370b324cSopenharmony_ci and (-1) also is reserved for unsupported custom filter. 14370b324cSopenharmony_ci if (FilterIndex >= 0), then FilterIndex is index of filter */ 15370b324cSopenharmony_ci int FilterIndex; // [in / out] 16370b324cSopenharmony_ci bool SaveMode; 17370b324cSopenharmony_ci #ifdef UNDER_CE 18370b324cSopenharmony_ci bool OpenFolderMode; 19370b324cSopenharmony_ci #endif 20370b324cSopenharmony_ci HWND hwndOwner; 21370b324cSopenharmony_ci // LPCWSTR lpstrInitialDir; 22370b324cSopenharmony_ci LPCWSTR lpstrTitle; 23370b324cSopenharmony_ci UString FilePath; // [in / out] 24370b324cSopenharmony_ci 25370b324cSopenharmony_ci CCommonDialogInfo() 26370b324cSopenharmony_ci { 27370b324cSopenharmony_ci FilterIndex = -1; 28370b324cSopenharmony_ci SaveMode = false; 29370b324cSopenharmony_ci #ifdef UNDER_CE 30370b324cSopenharmony_ci OpenFolderMode = false; 31370b324cSopenharmony_ci #endif 32370b324cSopenharmony_ci hwndOwner = NULL; 33370b324cSopenharmony_ci // lpstrInitialDir = NULL; 34370b324cSopenharmony_ci lpstrTitle = NULL; 35370b324cSopenharmony_ci } 36370b324cSopenharmony_ci 37370b324cSopenharmony_ci /* (filters) : 2 sequential vector strings (Description, Masks) represent each filter */ 38370b324cSopenharmony_ci bool CommonDlg_BrowseForFile(LPCWSTR lpstrInitialDir, const UStringVector &filters); 39370b324cSopenharmony_ci}; 40370b324cSopenharmony_ci 41370b324cSopenharmony_ci} 42370b324cSopenharmony_ci 43370b324cSopenharmony_ci#endif 44