xtd 0.2.0
Loading...
Searching...
No Matches
open_file_name_flags.h
Go to the documentation of this file.
1
4#pragma once
5#include <cstddef>
6
7#if !defined(OFN_READONLY)
14constexpr size_t OFN_READONLY = 0x00000001;
21constexpr size_t OFN_OVERWRITEPROMPT = 0x00000002;
28constexpr size_t OFN_HIDEREADONLY = 0x00000004;
35constexpr size_t OFN_NOCHANGEDIR = 0x00000008;
42constexpr size_t OFN_SHOWHELP = 0x00000010;
49constexpr size_t OFN_ENABLEHOOK = 0x00000020;
56constexpr size_t OFN_ENABLETEMPLATE = 0x00000040;
63constexpr size_t OFN_ENABLETEMPLATEHANDLE = 0x00000080;
70constexpr size_t OFN_NOVALIDATE = 0x00000100;
77constexpr size_t OFN_ALLOWMULTISELECT = 0x00000200;
84constexpr size_t OFN_EXTENSIONDIFFERENT = 0x00000400;
91constexpr size_t OFN_PATHMUSTEXIST = 0x00000800;
98constexpr size_t OFN_FILEMUSTEXIST = 0x00001000;
105constexpr size_t OFN_CREATEPROMPT = 0x00002000;
112constexpr size_t OFN_SHAREAWARE = 0x00004000;
119constexpr size_t OFN_NOREADONLYRETURN = 0x00008000;
126constexpr size_t OFN_NOTESTFILECREATE = 0x00010000;
133constexpr size_t OFN_NONETWORKBUTTON = 0x00020000;
140constexpr size_t OFN_NOLONGNAMES = 0x00040000;
147constexpr size_t OFN_EXPLORER = 0x00080000;
154constexpr size_t OFN_NODEREFERENCELINKS = 0x00100000;
161constexpr size_t OFN_LONGNAMES = 0x00200000;
168constexpr size_t OFN_ENABLEINCLUDENOTIFY = 0x00400000;
175constexpr size_t OFN_ENABLESIZING = 0x00800000;
182constexpr size_t OFN_DONTADDTORECENT = 0x02000000;
189constexpr size_t OFN_FORCESHOWHIDDEN = 0x10000000;
190#endif
197constexpr size_t OFN_SHOWPREVIEW = 0x40000000;
204constexpr size_t OFN_ADDEXTENSION = 0x80000000;
constexpr size_t OFN_PATHMUSTEXIST
The user can type only valid paths and file names. If this flag is used and the user types an invalid...
Definition open_file_name_flags.h:91
constexpr size_t OFN_NOCHANGEDIR
Restores the current directory to its original value if the user changed the directory while searchin...
Definition open_file_name_flags.h:35
constexpr size_t OFN_NOTESTFILECREATE
The file is not created before the dialog box is closed. This flag should be specified if the applica...
Definition open_file_name_flags.h:126
constexpr size_t OFN_SHOWHELP
Causes the dialog box to display the Help button. The hwndOwner member must specify the window to rec...
Definition open_file_name_flags.h:42
constexpr size_t OFN_CREATEPROMPT
If the user specifies a file that does not exist, this flag causes the dialog box to prompt the user ...
Definition open_file_name_flags.h:105
constexpr size_t OFN_EXTENSIONDIFFERENT
The user typed a file name extension that differs from the extension specified by lpstrDefExt....
Definition open_file_name_flags.h:84
constexpr size_t OFN_FILEMUSTEXIST
The user can type only names of existing files in the File Name entry field. If this flag is specifie...
Definition open_file_name_flags.h:98
constexpr size_t OFN_HIDEREADONLY
Hides the Read Only check box.
Definition open_file_name_flags.h:28
constexpr size_t OFN_LONGNAMES
For old-style dialog boxes, this flag causes the dialog box to use long file names....
Definition open_file_name_flags.h:161
constexpr size_t OFN_ENABLESIZING
Enables the Explorer-style dialog box to be resized using either the mouse or the keyboard....
Definition open_file_name_flags.h:175
constexpr size_t OFN_NOLONGNAMES
For old-style dialog boxes, this flag causes the dialog box to use short file names (8....
Definition open_file_name_flags.h:140
constexpr size_t OFN_FORCESHOWHIDDEN
Forces the showing of system and hidden files, thus overriding the user setting to show or not show h...
Definition open_file_name_flags.h:189
constexpr size_t OFN_EXPLORER
Indicates that any customizations made to the Open or Save As dialog box use the Explorer-style custo...
Definition open_file_name_flags.h:147
constexpr size_t OFN_ENABLEINCLUDENOTIFY
Causes the dialog box to send CDN_INCLUDEITEM notification messages to your OFNHookProc hook procedur...
Definition open_file_name_flags.h:168
constexpr size_t OFN_ADDEXTENSION
Cause the dialog box automatically adds an extension to a file name if the user omits the extension.
Definition open_file_name_flags.h:204
constexpr size_t OFN_READONLY
Causes the Read Only check box to be selected initially when the dialog box is created....
Definition open_file_name_flags.h:14
constexpr size_t OFN_ENABLETEMPLATE
The lpTemplateName member is a pointer to the name of a dialog template resource in the module identi...
Definition open_file_name_flags.h:56
constexpr size_t OFN_NOREADONLYRETURN
The returned file does not have the Read Only check box selected and is not in a write-protected dire...
Definition open_file_name_flags.h:119
constexpr size_t OFN_ENABLEHOOK
Enables the hook function specified in the lpfnHook member.
Definition open_file_name_flags.h:49
constexpr size_t OFN_OVERWRITEPROMPT
Causes the Save As dialog box to generate a message box if the selected file already exists....
Definition open_file_name_flags.h:21
constexpr size_t OFN_SHAREAWARE
Specifies that if a call to the OpenFile function fails because of a network sharing violation,...
Definition open_file_name_flags.h:112
constexpr size_t OFN_NODEREFERENCELINKS
Directs the dialog box to return the path and file name of the selected shortcut (....
Definition open_file_name_flags.h:154
constexpr size_t OFN_DONTADDTORECENT
Prevents the system from adding a link to the selected file in the file system directory that contain...
Definition open_file_name_flags.h:182
constexpr size_t OFN_NOVALIDATE
The common dialog boxes allow invalid characters in the returned file name. Typically,...
Definition open_file_name_flags.h:70
constexpr size_t OFN_ENABLETEMPLATEHANDLE
The hInstance member identifies a data block that contains a preloaded dialog box template....
Definition open_file_name_flags.h:63
constexpr size_t OFN_NONETWORKBUTTON
Hides and disables the Network button.
Definition open_file_name_flags.h:133
constexpr size_t OFN_ALLOWMULTISELECT
The File Name list box allows multiple selections. If you also set the OFN_EXPLORER flag,...
Definition open_file_name_flags.h:77
constexpr size_t OFN_SHOWPREVIEW
Causes the dialog box to display the preview panel.
Definition open_file_name_flags.h:197