Struct winsafe::shell::IFileOpenDialog [−][src]
pub struct IFileOpenDialog { /* fields omitted */ }
Expand description
IFileOpenDialog
COM interface over
IFileOpenDialogVT
. Inherits from
IFileDialog
,
IModalWindow
, IUnknown
.
Automatically calls
Release
when the object goes out of scope.
Examples
use winsafe::{co, CoCreateInstance, shell};
let obj = CoCreateInstance::<shell::IFileOpenDialog>(
&shell::clsid::FileOpenDialog,
None,
co::CLSCTX::INPROC_SERVER,
)?;
Implementations
Returns the raw pointer to pointer to the COM virtual table.
IUnknown::QueryInterface
method.
IFileDialog::AddPlace
method.
IFileDialog::ClearClientData
method.
IFileDialog::GetCurrentSelection
method.
IFileDialog::GetFileName
method.
IFileDialog::GetFileTypeIndex
method.
IFileDialog::GetFolder
method.
IFileDialog::GetOptions
method.
IFileDialog::GetResult
method.
IFileDialog::SetClientGuid
method.
IFileDialog::SetDefaultExtension
method.
IFileDialog::SetDefaultFolder
method.
IFileDialog::SetFileName
method.
IFileDialog::SetFileNameLabel
method.
IFileDialog::SetFileTypeIndex
method.
Note: The index is one-based.
IFileDialog::SetFileTypes
method.
Examples
use winsafe::shell::IFileDialog;
let file_dlg: IFileDialog; // initialized somewhere
file_dlg.SetFileTypes(&[
("Documents", "*.docx;*.txt"),
("Images", "*.jpg;*.png;*.bmp"),
("All files", "*.*"),
])?;
IFileDialog::SetFolder
method.
IFileDialog::SetOkButtonLabel
method.
IFileDialog::SetOptions
method.
IFileOpenDialog::GetResults
method.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for IFileOpenDialog
impl Unpin for IFileOpenDialog
impl UnwindSafe for IFileOpenDialog
Blanket Implementations
Mutably borrows from an owned value. Read more