次の方法で共有


CAnimationBaseObject::ContainsVariable

Determines whether an animation object contains a particular animation variable.

virtual BOOL ContainsVariable(
   IUIAnimationVariable* pVariable
);

Parameters

  • pVariable
    A pointer to animation variable.

Return Value

TRUE if the animation variable is contained in the animation object; otherwise FALSE.

Remarks

This method can be used to determine whether an animation variable specified by pVariable is contained within an animation object. An animation object, depending on its type, may contain several animation variables. For example, CAnimationColor contains three variables, one for each color component (red, green and blue). When a value of animation variable has changed, Windows Animation API sends ValueChanged or IntegerValueChanged events (if enabled), and the parameter of this event is a pointer to interface IUIAnimationVariable of animation variable. This method helps to obtain a pointer to animation from a pointer to contained COM object.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationBaseObject Class