Condividi tramite


CAnimationController::OnAnimationValueChanged

Called by the framework when value of animation variable has changed.

virtual void OnAnimationValueChanged(
   CAnimationGroup* pGroup,
   CAnimationBaseObject* pObject,
   IUIAnimationVariable* variable,
   DOUBLE newValue,
   DOUBLE prevValue
);

Parameters

  • pGroup
    A pointer to an animation group that holds an animation object whose value has changed.

  • pObject
    A pointer to an animation object that contains an animation variable whose value has changed.

  • variable
    A pointer to an animation variable.

  • newValue
    Specifies new value.

  • prevValue
    Specifies previous value.

Remarks

This method is called if you enable animation variable events with EnableValueChangedEvent called for a specific animation variable or animation object. It can be overridden in a derived class to take application-specific actions.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationController Class