다음을 통해 공유


IMediaEvent::RestoreDefaultHandling

 
Microsoft DirectShow 9.0

IMediaEvent::RestoreDefaultHandling

The RestoreDefaultHandling method restores the Filter Graph Manager's default handling for a specified event.

Syntax

  HRESULT RestoreDefaultHandling(
  long lEvCode
);

Parameters

lEvCode

[in] Event code for which to restore default handling.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG No default handling for this event.

Remarks

By default, the Filter Graph Manager handles some events (such as EC_REPAINT) without passing them to the application. If you call the IMediaEvent::CancelDefaultHandling method to override the default handling for an event, you can restore the default behavior by calling RestoreDefaultHandling with the same event code.

Requirements

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

Library: Use Strmiids.lib.

See Also