Skip to content

Latest commit

 

History

History
97 lines (62 loc) · 2.99 KB

cconstanttransition-class.md

File metadata and controls

97 lines (62 loc) · 2.99 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: CConstantTransition Class
CConstantTransition Class
11/04/2016
CConstantTransition
AFXANIMATIONCONTROLLER/CConstantTransition
AFXANIMATIONCONTROLLER/CConstantTransition::CConstantTransition
AFXANIMATIONCONTROLLER/CConstantTransition::Create
AFXANIMATIONCONTROLLER/CConstantTransition::m_duration
CConstantTransition [MFC], CConstantTransition
CConstantTransition [MFC], Create
CConstantTransition [MFC], m_duration
f6fa4780-a71b-4cd6-80aa-d4792ace36c2

CConstantTransition Class

Encapsulates a constant transition.

Syntax

class CConstantTransition : public CBaseTransition; 

Members

Public Constructors

NameDescription
CConstantTransition::CConstantTransitionConstructs a transition object and initializes its duration.

Public Methods

NameDescription
CConstantTransition::CreateCalls the transition library to create encapsulated transition COM object. (Overrides CBaseTransition::Create.)

Public Data Members

NameDescription
CConstantTransition::m_durationThe duration of the transition.

Remarks

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.

Inheritance Hierarchy

CObject

CBaseTransition

CConstantTransition

Requirements

Header: afxanimationcontroller.h

CConstantTransition::CConstantTransition

Constructs a transition object and initializes its duration.

CConstantTransition (UI_ANIMATION_SECONDS duration); 

Parameters

duration
The duration of the transition.

CConstantTransition::Create

Calls the transition library to create encapsulated transition COM object.

virtual BOOL Create( IUIAnimationTransitionLibrary* pLibrary, IUIAnimationTransitionFactory* \*not used*\); 

Parameters

pLibrary
A pointer to an IUIAnimationTransitionLibrary interface, which defines a library of standard transitions.

Return Value

TRUE if transition is created successfully; otherwise FALSE.

CConstantTransition::m_duration

The duration of the transition.

UI_ANIMATION_SECONDS m_duration; 

See also

Classes

close