Click to See Complete Forum and Search --> : How to change AVI clip of the CAniButton?


Vlad Gotsev
April 18th, 1999, 04:07 PM
Hi!

I have troubles with the CAniButton – buttom with AVI clip animation.
My%2

Vlad Gotsev
April 19th, 1999, 09:58 AM
Hi!

I have troubles with the CAniButton – buttom with AVI clip animation.
My prjgram has few such buttons and I need to change its AVI clips from time to time. I have some sense, that I do it not very correctly:

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.