共用方式為


CKeyFrame Class

Represents an animation keyframe.

class CKeyFrame : public CBaseKeyFrame;

Members

Public Constructors

Name

Description

CKeyFrame::CKeyFrame

Overloaded. Constructs a keyframe that depends on other keyframe.

Public Methods

Name

Description

CKeyFrame::AddToStoryboard

Adds a keyframe to a storyboard. (Overrides CBaseKeyFrame::AddToStoryboard.)

CKeyFrame::AddToStoryboardAfterTransition

Adds a keyframe to storyboard after transition.

CKeyFrame::AddToStoryboardAtOffset

Adds a keyframe to storyboard at offset.

CKeyFrame::GetExistingKeyframe

Returns a pointer to a keyframe this keyframe depends on.

CKeyFrame::GetOffset

Returns an offset from other keyframe.

CKeyFrame::GetTransition

Returns a pointer to a transition this keyframe depends on.

Protected Data Members

Name

Description

CKeyFrame::m_offset

Specifies offset of this keyframe from a keyframe stored in m_pExistingKeyFrame.

CKeyFrame::m_pExistingKeyFrame

Stores a pointer to an existing keframe. This keyframe is added to storyboard with m_offset to the existing keyframe.

CKeyFrame::m_pTransition

Stores a pointer to transtion that begins at this keyframe.

Remarks

This class implements an animation keyframe. A keyframe represents a moment in time within a storyboard and can be used to specify the start and end times of transitions. A keyframe may be based on other keyframe and have an offset (in seconds) from it, or may be based on a transition and represent a moment in time when this transition ends.

Inheritance Hierarchy

CObject

CBaseKeyFrame

CKeyFrame

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes