Partager via


CAnimationController::AnimateGroup

Prepares a group to run animation and optionally schedules it.

BOOL AnimateGroup(
   UINT32 nGroupID,
   BOOL bScheduleNow = TRUE
);

Parameters

  • nGroupID
    Specifies GroupID.

  • bScheduleNow
    Specifies whether to run animation right away.

Return Value

TRUE if animation was successfully scheduled and run.

Remarks

This method does the actual work creating storyboard, adding animation variables, applying transitions and setting keyframes. It's possible to delay scheduling if you set bScheduleNow to FALSE. In this case the specified group will hold a storyboard that has been set up for animation. At that point you can setup events for the storyboard and animation variables. When you actually need to run the animation call CAnimationController::ScheduleGroup.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationController Class