次の方法で共有


CInstantaneousTransition Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CInstantaneousTransition Class.

Encapsulates an instantaneous transition.

Syntax

class CInstantaneousTransition : public CBaseTransition;  

Members

Public Constructors

Name Description
CInstantaneousTransition::CInstantaneousTransition Constructs a transition object and initializes its final value.

Public Methods

Name Description
CInstantaneousTransition::Create Calls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.)

Public Data Members

Name Description
CInstantaneousTransition::m_dblFinalValue The value of the animation variable at the end of the transition.

Remarks

During an instantaneous transition, the value of the animation variable changes instantly from its current value to a specified final value. The duration of this transition is always zero. 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.

Inheritance Hierarchy

CObject

CBaseTransition

CInstantaneousTransition

Requirements

Header: afxanimationcontroller.h

CInstantaneousTransition::CInstantaneousTransition

Constructs a transition object and initializes its final value.

CInstantaneousTransition(DOUBLE dblFinalValue);

Parameters

dblFinalValue
The value of the animation variable at the end of the transition.

CInstantaneousTransition::Create

Calls the transition library to create encapsulated transition COM object.

virtual BOOL Create(
    IUIAnimationTransitionLibrary* pLibrary,  
    IUIAnimationTransitionFactory* */);

Parameters

pLibrary
A pointer to transition library, which is responsible for creation of standard transitions.

Return Value

TRUE if transition is created successfully; otherwise FALSE.

CInstantaneousTransition::m_dblFinalValue

The value of the animation variable at the end of the transition.

DOUBLE m_dblFinalValue;  

See Also

Classes