pub struct FOS(/* private fields */);
kernel
and shell
only.Expand description
_FILEOPENDIALOGOPTIONS
enumeration (u32
).
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl FOS
impl FOS
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl FOS
impl FOS
sourcepub const OVERWRITEPROMPT: Self = _
pub const OVERWRITEPROMPT: Self = _
When saving a file prompt before overwriting an existing file of the same name. This is a default value for the Save dialog.
sourcepub const STRICTFILETYPES: Self = _
pub const STRICTFILETYPES: Self = _
In the Save dialog only allow the user to choose a file that has one of
the file name extensions specified through
IFileDialog::SetFileTypes
.
sourcepub const NOCHANGEDIR: Self = _
pub const NOCHANGEDIR: Self = _
Don’t change the current working directory.
sourcepub const PICKFOLDERS: Self = _
pub const PICKFOLDERS: Self = _
Present an Open dialog that offers a choice of folders rather than files.
sourcepub const FORCEFILESYSTEM: Self = _
pub const FORCEFILESYSTEM: Self = _
Ensures that returned items are file system items
(SFGAO::FILESYSTEM
). Note that this
does not apply to items returned by
IFileDialog::GetCurrentSelection
.
sourcepub const ALLNONSTORAGEITEMS: Self = _
pub const ALLNONSTORAGEITEMS: Self = _
Enables the user to choose any item in the Shell namespace not just
those with SFGAO::STREAM
or
SFAGO::FILESYSTEM
attributes. This
flag cannot be combined with
FOS::FORCEFILESYSTEM
.
sourcepub const NOVALIDATE: Self = _
pub const NOVALIDATE: Self = _
Do not check for situations that would prevent an application from opening the selected file such as sharing violations or access denied errors.
sourcepub const ALLOWMULTISELECT: Self = _
pub const ALLOWMULTISELECT: Self = _
Enables the user to select multiple items in the open dialog. Note that
when this flag is set the IFileOpenDialog
interface must be used to retrieve those items.
sourcepub const PATHMUSTEXIST: Self = _
pub const PATHMUSTEXIST: Self = _
The item returned must be in an existing folder. This is a default value.
sourcepub const FILEMUSTEXIST: Self = _
pub const FILEMUSTEXIST: Self = _
The item returned must exist. This is a default value for the Open dialog.
sourcepub const CREATEPROMPT: Self = _
pub const CREATEPROMPT: Self = _
Prompt for creation if the item returned in the save dialog does not exist. Note that this does not actually create the item.
sourcepub const SHAREAWARE: Self = _
pub const SHAREAWARE: Self = _
In the case of a sharing violation when an application is opening a
file call the application back through
OnShareViolation
for guidance. This flag is overridden by
FOS::NOVALIDATE
.
sourcepub const NOREADONLYRETURN: Self = _
pub const NOREADONLYRETURN: Self = _
Do not return read-only items. This is a default value for the Save dialog.
sourcepub const NOTESTFILECREATE: Self = _
pub const NOTESTFILECREATE: Self = _
Do not test whether creation of the item as specified in the Save dialog will be successful. If this flag is not set the calling application must handle errors such as denial of access discovered when the item is created.
sourcepub const HIDEMRUPLACES: Self = _
pub const HIDEMRUPLACES: Self = _
Hide the list of places from which the user has recently opened or saved items. This value is not supported as of Windows 7.
sourcepub const HIDEPINNEDPLACES: Self = _
pub const HIDEPINNEDPLACES: Self = _
Hide items shown by default in the view’s navigation pane. This flag is
often used in conjunction with the
IFileDialog::AddPlace
method, to hide standard locations and replace them with custom
locations.
Windows 7 and later. Hide all of the standard namespace locations (such as Favorites Libraries Computer and Network) shown in the navigation pane.
Windows Vista. Hide the contents of the Favorite Links tree in the navigation pane. Note that the category itself is still displayed but shown as empty.
sourcepub const NODEREFERENCELINKS: Self = _
pub const NODEREFERENCELINKS: Self = _
Shortcuts should not be treated as their target items. This allows an application to open a .lnk file rather than what that file is a shortcut to.
sourcepub const OKBUTTONNEEDSINTERACTION: Self = _
pub const OKBUTTONNEEDSINTERACTION: Self = _
(This constant has no official documentation.)
sourcepub const DONTADDTORECENT: Self = _
pub const DONTADDTORECENT: Self = _
Do not add the item being opened or saved to the recent documents list
(SHAddToRecentDocs
).
sourcepub const FORCESHOWHIDDEN: Self = _
pub const FORCESHOWHIDDEN: Self = _
Include hidden and system items.
sourcepub const DEFAULTNOMINIMODE: Self = _
pub const DEFAULTNOMINIMODE: Self = _
Indicates to the Save As dialog box that it should open in expanded mode. Expanded mode is the mode that is set and unset by clicking the button in the lower-left corner of the Save As dialog box that switches between Browse Folders and Hide Folders when clicked. This value is not supported as of Windows 7.
sourcepub const FORCEPREVIEWPANEON: Self = _
pub const FORCEPREVIEWPANEON: Self = _
Indicates to the Open dialog box that the preview pane should always be displayed.
sourcepub const SUPPORTSTREAMABLEITEMS: Self = _
pub const SUPPORTSTREAMABLEITEMS: Self = _
Indicates that the caller is opening a file as a stream
(BHID_Stream
) so
there is no need to download that file.
Trait Implementations§
source§impl BitAndAssign for FOS
impl BitAndAssign for FOS
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign for FOS
impl BitOrAssign for FOS
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign for FOS
impl BitXorAssign for FOS
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl IntUnderlying for FOS
impl IntUnderlying for FOS
source§impl NativeBitflag for FOS
impl NativeBitflag for FOS
source§impl Ord for FOS
impl Ord for FOS
source§impl PartialOrd for FOS
impl PartialOrd for FOS
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more