Microsoft DirectX 8.1 (C++) |
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 Value
Returns an HRESULT value. Possible values include the following.
Value | 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.
See Also