1.Progress Control
CProgress m_wndProgress;
m_wndProgress.SetRange(0,100);
m_wndProgress.SetPos (0);
// (2) m_wndProgress.SetStep(1);
for(int i=0;i<100;i++)
{
m_wndProgress.SetPos(i); //equal (1)m_wndProgress.OffsetPos(i); (2) m_wndProgress.SetIt();
::Sleep(50);
}
2.Animation Control
// In the RC file
IDR_FINDFILE AVI "Findfile.avi"
// In the CPP file
m_wndAnimate.Open (IDR_FINDFILE);
m_wndAnimate.Play (0, -1, -1);
m_wndAnimate.Stop();
m_wndAnimate.Close();
本文详细介绍了如何在C++中使用ProgressControl和AnimationControl控件,包括设置范围、位置、播放动画等内容。

被折叠的 条评论
为什么被折叠?



