IPhotoAcquireOptionsDialog::DoModal method (photoacquire.h)

The DoModal method creates and displays the options dialog box as a modal dialog box.

Syntax

HRESULT DoModal(
  [in]  HWND    hWndParent,
  [out] INT_PTR *ppnReturnCode
);

Parameters

[in] hWndParent

Handle to the dialog's parent window.

[out] ppnReturnCode

Specifies the code returned when the window is closed.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

The modal dialog displayed by DoModal will have OK and Cancel buttons, whereas the OK and Cancel buttons of the modeless dialog displayed by Create must be provided by the parent window.

Requirements

Requirement Value
Target Platform Windows
Header photoacquire.h
Library PhotoAcquireUID.lib

See also

IPhotoAcquireOptionsDialog Interface