Click to See Complete Forum and Search --> : Is it true way of CAnimateCtrl AVI-clip changing?


Vlad Gotsev
April 20th, 1999, 12:25 AM
Hi!

Am I correct when changing AVI-clip of a CAnimateCtrl this way? Help me please.

CAnimateCtrl m_AnimateCtrl;

The AVI changing procedure:

m_AnimateCtrl.Stop();
m_AnimateCtrl.Close();
m_AnimateCtrl.Open(New_AVI_resource_ID);
if (::IsWindow(m_AnimateCtrl))
{
m_AnimateCtrl.Play(0,-1,nRep);
}

What’s wrong?
Could anybody help?

Great thanks.
Vlad.