File Dialog Flags
Const OFN_READONLY = &H1
Const OFN_OVERWRITEPROMPT = &H2
Const OFN_HIDEREADONLY = &H4
Const OFN_NOCHANGEDIR = &H8
Const OFN_SHOWHELP = &H10
Const OFN_NOVALIDATE = &H100
Const OFN_ALLOWMULTISELECT = &H200
Const OFN_PATHMUSTEXIST = &H800
Const OFN_FILEMUSTEXIST = &H1000
Const OFN_CREATEPROMPT = &H2000
Const OFN_SHAREAWARE = &H4000
Const OFN_NODEREFERENCELINKS = &H100000
The file dialog flags determine how to render the Open File and Save File dialog boxes. These flags can be combined as long as a contradictory pair are not combined (like OFN_FILEMUSTEXIST and OFN_CREATEPROMPT).
- OFN_READONLY
- If this flag is set after the function call, the user clicked the Open As Read Only box (Open File dialog box only).
- OFN_OVERWRITEPROMPT
- Prompt if the chosen file already exists (Save File dialog box only).
- OFN_HIDEREADONLY
- Hide the Open As Read Only check box (Open File dialog box only).
- OFN_NOCHANGEDIR
- Don't change the current directory to match the one chosen in the dialog box.
- OFN_SHOWHELP
- Show the Help button. (Unfortunately, I don't know how to make it do anything.)
- OFN_NOVALIDATE
- Don't check the filename for invalid characters.
- OFN_ALLOWMULTISELECT
- Allow the user to select multiple files (Open Dialog box only).
- OFN_PATHMUSTEXIST
- Only allow the selection of existing paths.
- OFN_FILEMUSTEXIST
- Only allow the selection of existing files.
- OFN_CREATEPROMPT
- Prompt if a non-existing file is chosen.
- OFN_SHAREAWARE
- Ignore any file-sharing violations.
- OFN_NODEREFERENCELINKS
- If a shortcut file (.lnk or .pif) is chosen, return the shortcut file itself instead of the file ip points to.
Used by: GetOpenFileName, GetSaveFileName (both used through OPENFILENAME)
Back to the index.
Back to Paul Kuliniewicz's Home Page
E-mail: Borg953@aol.com
This page is at http://members.aol.com/Borg953/api/constants/filedialogflags.html