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>;
Name | Description |
---|---|
CAnimationManagerEventHandler::CAnimationManagerEventHandler | Constructs a CAnimationManagerEventHandler object. |
Name | Description |
---|---|
CAnimationManagerEventHandler::CreateInstance | Creates an instance of CAnimationManagerEventHandler object. |
CAnimationManagerEventHandler::OnManagerStatusChanged | Called when a status of animation manager has changed. (Overrides CUIAnimationManagerEventHandlerBase::OnManagerStatusChanged .) |
CAnimationManagerEventHandler::SetAnimationController | Stores 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);
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.
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);
newStatus
New status.
previousStatus
Previous status.
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);
pAnimationController
A pointer to animation controller, which will receive events.