locked
How can I restart AnimationController on MFC RRS feed

  • Question

  • Im studying AnimationController. It's working. But always have to call cleanup.

    How do I not to reset each time?

    If i want to animate control, call this code.

    	animation_controller_.CleanUpGroup(1);
    
    	animation_color_ = default_color;
    	animation_color_.AddTransition(new CAccelerateDecelerateTransition(0.1, GetRValue(target_color)),
    		new CAccelerateDecelerateTransition(0.1, GetGValue(target_color)),
    		new CAccelerateDecelerateTransition(0.1, GetBValue(target_color)));
    
    	animation_color_.SetID(0, 1);
    	animation_controller_.AddAnimationObject(&animation_color_);
    
    	animation_controller_.AnimateGroup(1);

    Monday, June 1, 2020 6:35 AM