CConstantTransition Class
Encapsulates a constant transition.
class CConstantTransition : public CBaseTransition;
Name | Description |
---|---|
CConstantTransition::CConstantTransition | Constructs a transition object and initializes its duration. |
Name | Description |
---|---|
CConstantTransition::Create | Calls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.) |
Name | Description |
---|---|
CConstantTransition::m_duration | The duration of the transition. |
During a constant transition, the value of an animation variable remains at the initial value over the duration of the transition. Because all transitions are cleared automatically, it's recommended to allocated them using operator new. The encapsulated IUIAnimationTransition COM object is created by CAnimationController::AnimateGroup, until then it's NULL. Changing member variables after creation of this COM object has no effect.
CConstantTransition
Header: afxanimationcontroller.h
Constructs a transition object and initializes its duration.
CConstantTransition (UI_ANIMATION_SECONDS duration);
duration
The duration of the transition.
Calls the transition library to create encapsulated transition COM object.
virtual BOOL Create(
IUIAnimationTransitionLibrary* pLibrary,
IUIAnimationTransitionFactory* \*not used*\);
pLibrary
A pointer to an IUIAnimationTransitionLibrary interface, which defines a library of standard transitions.
TRUE if transition is created successfully; otherwise FALSE.
The duration of the transition.
UI_ANIMATION_SECONDS m_duration;