CAnimationManagerEventHandler Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CAnimationManagerEventHandler Class.

Implements a callback, which is called by the Animation API when a status of an animation manager is changed.

class CAnimationManagerEventHandler : public CUIAnimationManagerEventHandlerBase<CAnimationManagerEventHandler>;  

Public Constructors

NameDescription
CAnimationManagerEventHandler::CAnimationManagerEventHandlerConstructs a CAnimationManagerEventHandler object.

Public Methods

NameDescription
CAnimationManagerEventHandler::CreateInstanceCreates an instance of CAnimationManagerEventHandler object.
CAnimationManagerEventHandler::OnManagerStatusChangedCalled when a status of animation manager has changed. (Overrides CUIAnimationManagerEventHandlerBase::OnManagerStatusChanged.)
CAnimationManagerEventHandler::SetAnimationControllerStores a pointer to animation controller to route events.

This event handler is created and passed to IUIAnimationManager::SetManagerEventHandler method, when you call CAnimationController::EnableAnimationManagerEvent.

CUIAnimationCallbackBase

CUIAnimationManagerEventHandlerBase

CAnimationManagerEventHandler

Header: afxanimationcontroller.h

Visual Studio 2010 SP1 is required.

Constructs a CAnimationManagerEventHandler object.

CAnimationManagerEventHandler();

Visual Studio 2010 SP1 is required.

Creates an instance of CAnimationManagerEventHandler object.

static COM_DECLSPEC_NOTHROW HRESULT CreateInstance(
    CAnimationController* pAnimationController,  
    IUIAnimationManagerEventHandler** ppManagerEventHandler);

Parameters

pAnimationController
A pointer to animation controller, which will receive events.

ppManagerEventHandler
Output. If the method succeeds it contains a pointer to COM object that will handle status updates to an animation manager.

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Visual Studio 2010 SP1 is required.

Called when a status of animation manager has changed.

IFACEMETHOD(OnManagerStatusChanged)(
  UI_ANIMATION_MANAGER_STATUS newStatus,
  UI_ANIMATION_MANAGER_STATUS previousStatus);

Parameters

newStatus
New status.

previousStatus
Previous status.

Return Value

Current implementation always returns S_OK;

Visual Studio 2010 SP1 is required.

Stores a pointer to animation controller to route events.

void SetAnimationController(CAnimationController* pAnimationController);

Parameters

pAnimationController
A pointer to animation controller, which will receive events.

Classes

Show: