IMediaEvent::RestoreDefaultHandling method (control.h)
The RestoreDefaultHandling method restores the Filter Graph Manager's default handling for a specified event.
Syntax
HRESULT RestoreDefaultHandling(
[in] long lEvCode
);
Parameters
[in] lEvCode
Event code for which to restore default handling.
Return value
Returns an HRESULT value. Possible values include the following.
| Return code | Description |
|---|---|
|
Success. |
|
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
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | control.h (include Dshow.h) |
| Library | Strmiids.lib |