Microsoft DirectX 9.0

EC_ACTIVATE

A video window is being activated or deactivated.

Parameters

lParam1

TRUE if the window is activated, or FALSE if the window is deactivated.

lParam2

Pointer to the renderer's IBaseFilter interface.

Default Action

The filter graph manager sets the focus, through the IResourceManager interface. It does not send the event notification to the application.

Remarks

A video renderer sends this event whenever its window is activated or deactivated (that is, when it receives a WM_ACTIVATEAPP message). Window activation or deactivation can occur because the window has gained or lost focus, or because the renderer has switched between full-screen mode and windowed mode.

This event enables the filter graph manager to allocate resources that depend on window focus, such as audio devices.

See Also