Export (0) Print
Expand All

IUIAnimationManager::SetManagerEventHandler method

Specifies a handler for animation manager status updates.

Syntax


HRESULT SetManagerEventHandler(
  [in, optional]  IUIAnimationManagerEventHandler *handler
);

Parameters

handler [in, optional]

The event handler to be called when the status of the animation manager changes. The specified object must implement the IUIAnimationManagerEventHandler interface or be NULL. See Remarks section for more information.

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 that you passed in earlier. This technique can be essential for breaking reference cycles without having to call the IUIAnimationManager::Shutdown method.

Examples

For an example, see Update the Animation Manager and Draw Frames.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

See also

IUIAnimationManager
IUIAnimationManagerEventHandler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft