IUIAnimationStoryboard::SetStoryboardEventHandler method

Specifies a handler for storyboard events.

Syntax

HRESULT SetStoryboardEventHandler(
  IUIAnimationStoryboardEventHandler *handler
);

Parameters

handler

The handler to be called whenever storyboard status and update events occur.

        The specified object must implement the
        <a href="https://docs.microsoft.com/windows/desktop/api/uianimation/nn-uianimation-iuianimationstoryboardeventhandler">IUIAnimationStoryboardEventHandler</a> interface or be <b>NULL</b>. See Remarks.

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

Passing NULL for the handler parameter causes Windows Animation to release its reference to any handler object you passed in earlier. This technique can be essential for breaking reference cycles without having to call the IUIAnimationManager::Shutdown method.

Requirements

   
Minimum supported client Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See Also

IUIAnimationStoryboard

IUIAnimationStoryboardEventHandler