8578
|
1 |
#ifndef fileDialogDataStruct_H
|
|
2 |
#define fileDialogDataStruct_H
|
|
3 |
|
|
4 |
#include <Windows.h> // MAX_PATH
|
|
5 |
|
|
6 |
typedef struct fileDialogDataStruct {
|
|
7 |
WCHAR filename[1000 * MAX_PATH]; // big buffer to support multiselect
|
|
8 |
WCHAR directory[MAX_PATH];
|
|
9 |
WCHAR title[MAX_PATH];
|
|
10 |
DWORD owningWindow; // HWND as DWORD to be 32 and 64 bit compatible
|
|
11 |
WCHAR filter[10 * MAX_PATH]; // there could be many filters
|
|
12 |
DWORD filterIndex;
|
|
13 |
BOOL trueForSave;
|
|
14 |
BOOL trueForMultiSelect;
|
|
15 |
BOOL trueForPromptOverwrite;
|
|
16 |
|
|
17 |
DWORD fileDialogThreadId;
|
|
18 |
BOOL fileDialogDidReturn;
|
|
19 |
BOOL didPerformCroppedBaseNameHack; /* the open dialog cropps the default basename https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/644328 */
|
|
20 |
} fileDialogData;
|
|
21 |
|
|
22 |
#endif
|