IOverlayNotify2 interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IOverlayNotify2 interface derives from the IOverlayNotify interface. IOverlayNotify2 gives asynchronous notifications of changes to the rendering window, identifying changes to the exposed window area. The advise link optionally supports this for the purpose of accepting IOverlayNotify2::OnDisplayChange notification.

To get notifications that the exposed window area has changed, decoders that do their own drawing should implement an IOverlayNotify2 interface.

The video renderer is the only filter that calls the method on this interface. This is done automatically by the default video renderer.

Inheritance

The IOverlayNotify2 interface inherits from IOverlayNotify. IOverlayNotify2 also has these types of members:

Methods

The IOverlayNotify2 interface has these methods.

 
IOverlayNotify2::OnDisplayChange

The OnDisplayChange method provides notification that the exposed window area has changed.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

IOverlayNotify