Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IFileDialog::Close method

Closes the dialog.

Syntax


HRESULT Close(
  [in]  HRESULT hr
);

Parameters

hr [in]

Type: HRESULT

The code that will be returned by Show to indicate that the dialog was closed before a selection was made.

Return value

Type: HRESULT

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

Remarks

An application can call this method from a callback method or function while the dialog is open. The dialog will close and the Show method will return with the HRESULT specified in hr.

If this method is called, there is no result available for the IFileDialog::GetResult or GetResults methods, and they will fail if called.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.