winNativeFileDialog/FileDialog.h
author Claus Gittinger <cg@exept.de>
Thu, 06 Jun 2019 11:59:52 +0200
changeset 8701 6b8c2d4d2cc5
parent 8578 bf8920edec8a
permissions -rw-r--r--
#FEATURE by cg class: Color added: #isBlueGreen #isBright #isBrown #isDark #isGrayish #isOrange #isSaturated class: Color class added: #neonPink #salmon changed: #pink

#ifndef fileDialogDataStruct_H
#define fileDialogDataStruct_H

#include <Windows.h> // MAX_PATH

typedef struct fileDialogDataStruct {
    WCHAR filename[1000 * MAX_PATH]; // big buffer to support multiselect
    WCHAR directory[MAX_PATH];
    WCHAR title[MAX_PATH];
    DWORD owningWindow; // HWND as DWORD to be 32 and 64 bit compatible
    WCHAR filter[10 * MAX_PATH]; // there could be many filters
    DWORD filterIndex;
    BOOL trueForSave;
    BOOL trueForMultiSelect;
    BOOL trueForPromptOverwrite;

    DWORD fileDialogThreadId;
    BOOL fileDialogDidReturn;
    BOOL didPerformCroppedBaseNameHack; /* the open dialog cropps the default basename https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/644328 */
} fileDialogData;

#endif