Skip to content

Latest commit

 

History

History
126 lines (80 loc) · 4.1 KB

canimationmanagereventhandler-class.md

File metadata and controls

126 lines (80 loc) · 4.1 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: CAnimationManagerEventHandler Class
CAnimationManagerEventHandler Class
11/04/2016
CAnimationManagerEventHandler
AFXANIMATIONCONTROLLER/CAnimationManagerEventHandler
AFXANIMATIONCONTROLLER/CAnimationManagerEventHandler::CAnimationManagerEventHandler
AFXANIMATIONCONTROLLER/CAnimationManagerEventHandler::CreateInstance
AFXANIMATIONCONTROLLER/CAnimationManagerEventHandler::OnManagerStatusChanged
AFXANIMATIONCONTROLLER/CAnimationManagerEventHandler::SetAnimationController
CAnimationManagerEventHandler [MFC], CAnimationManagerEventHandler
CAnimationManagerEventHandler [MFC], CreateInstance
CAnimationManagerEventHandler [MFC], OnManagerStatusChanged
CAnimationManagerEventHandler [MFC], SetAnimationController
6089ec07-e661-4805-b227-823b4652aade

CAnimationManagerEventHandler Class

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

Syntax

class CAnimationManagerEventHandler : public CUIAnimationManagerEventHandlerBase<CAnimationManagerEventHandler>; 

Members

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.

Remarks

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

Inheritance Hierarchy

CUIAnimationCallbackBase

CUIAnimationManagerEventHandlerBase

CAnimationManagerEventHandler

Requirements

Header: afxanimationcontroller.h

CAnimationManagerEventHandler::CAnimationManagerEventHandler

Visual Studio 2010 SP1 is required.

Constructs a CAnimationManagerEventHandler object.

CAnimationManagerEventHandler(); 

CAnimationManagerEventHandler::CreateInstance

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.

CAnimationManagerEventHandler::OnManagerStatusChanged

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;

CAnimationManagerEventHandler::SetAnimationController

Visual Studio 2010 SP1 is required.

Stores a pointer to animation controller to route events.

voidSetAnimationController(CAnimationController* pAnimationController);

Parameters

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

See also

Classes

close