다음을 통해 공유


IAMVfwCaptureDialogs::ShowDialog

 
Microsoft DirectShow 9.0

IAMVfwCaptureDialogs::ShowDialog

The ShowDialog method displays the specified VFW dialog box.

Syntax

  HRESULT ShowDialog(
  int iDialog,
  HWND hwnd
);

Parameters

iDialog

[in] Dialog box to display. This is a member of the VfwCaptureDialogs enumeration.

hwnd

[in] Handle of the dialog box's parent window.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_INVALIDARG Invalid argument.
S_OK Success.
VFW_E_CANNOT_CONNECT Could not reconnect with the new format.
VFW_E_NOT_STOPPED The filter graph is not stopped.

Remarks

Stop the filter graph before calling this method. Otherwise, the method fails and returns VFW_E_NOT_STOPPED.

The Video Format dialog (VfwCaptureDialog_Format) may change the video format. If so, the method tries to reconnect the capture filter. If the downstream filter rejects the new format, the method returns VFW_E_CANNOT_CONNECT.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also