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.