|Microsoft DirectX 9.0|
The OnUpdateOverlay method informs the application when the overlay surface for the video is about to become visible, invisible, change size, or change position, so that the application can repaint its window appropriately.
HRESULT OnUpdateOverlay( BOOL bBeforeChange, DWORD dwFlags, BOOL bOldVisible, const RECT *prcSrcOld, const RECT *prcDestOld, BOOL bNewVisible, const RECT *prcSrcNew, const RECT *prcDestNew, );
[in] Boolean value specifying whether the call is being made before or after the overlay-related change. TRUE specifies before, FALSE specifies after.
[in] Value from the AM_OVERLAY_NOTIFY_FLAGS enumeration that specifies what is about to change or what changed.
[in] Boolean value specifying whether the old window is visible. TRUE means the old window is visible.
[in] Pointer to the rectangle representing the old source position of the DirectDraw surface.
[in] Pointer to the rectangle representing the old destination position of the rectangle in the overlay surface.
[in] Boolean specifying whether the new window is visible. TRUE means the new window is visible.
[in] Pointer to the rectangle representing the new source position of the DirectDraw surface.
[in] Pointer to the rectangle representing the new destination position of the rectangle in the overlay surface.
Returns an HRESULT value. Possible values include the following.
The application should call this method once before the overlay-related change occurs and once after the changes are done. In the call before the change, the overlay change doesn't happen until the application completes executing this method.