Поделиться через


IFileSaveDialog::SetOptions method

Sets flags to control the behavior of the dialog.

Syntax

HRESULT SetOptions(
  [in] FILEOPENDIALOGOPTIONS fos
);

Parameters

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Generally, this method should take the value that was retrieved by IFileDialog::GetOptions and modify it to include or exclude options by setting the appropriate flags.

Requirements

Minimum supported client

Windows Vista, Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl_core.h

IDL

Shobjidl.idl