Condividi tramite


CAnimationSize::AddTransition

Adds transitions for Width and Height.

void AddTransition(
   CBaseTransition* pCXTransition,
   CBaseTransition* pCYTransition
);

Parameters

  • pCXTransition
    A pointer to transition for Width.

  • pCYTransition
    A pointer to transition for Height.

Remarks

Call this function to add the specified transitions to the internal list of transitions to be applied to animation variables for Width and Height. When you add transitions, they are not applied immediately and stored in an internal list. Transitions are applied (added to a storyboard for a particular value) when you call CAnimationController::AnimateGroup. If you don't need to apply a transition to one of dimensions, you can pass NULL.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CAnimationSize Class