利用Animate Control 播放动画失败!!
2013-04-21 11:17
225 查看
自己按照书上的代码去做一个播放动画的程序,不知道为什么失败啊!!
自己添加了一个Animate控件,两个button控件。
他们的ID为IDC_ANIMATE,IDC_START,IDC_STOP;
分别添加了成员变量
IDC_ANIMATE->m_cDonghua;
IDC_START->m_CStart;
IDC_STOP->m_CStop;
BOOL CShow_MoveDlg::OnInitDialog()
{
CDialog::OnInitDialog();
......
if (FALSE==m_cDonghua.Open("a.***I"))
{
MessageBox("打开视频失败!!");
}
m_CStop.EnableWindow(FALSE);
}
void CShow_MoveDlg::OnStart()
{
// TODO: Add your control notification handler code here
m_cDonghua.Play(0,-1,-1);
m_CStop.EnableWindow(TRUE);
m_CStart.EnableWindow(FALSE);
}
void CShow_MoveDlg::OnStop()
{
// TODO: Add your control notification handler code here
m_cDonghua.Stop();
m_CStop.EnableWindow(FALSE);
m_CStart.EnableWindow(TRUE);
}
自己添加了一个Animate控件,两个button控件。
他们的ID为IDC_ANIMATE,IDC_START,IDC_STOP;
分别添加了成员变量
IDC_ANIMATE->m_cDonghua;
IDC_START->m_CStart;
IDC_STOP->m_CStop;
BOOL CShow_MoveDlg::OnInitDialog()
{
CDialog::OnInitDialog();
......
if (FALSE==m_cDonghua.Open("a.***I"))
{
MessageBox("打开视频失败!!");
}
m_CStop.EnableWindow(FALSE);
}
void CShow_MoveDlg::OnStart()
{
// TODO: Add your control notification handler code here
m_cDonghua.Play(0,-1,-1);
m_CStop.EnableWindow(TRUE);
m_CStart.EnableWindow(FALSE);
}
void CShow_MoveDlg::OnStop()
{
// TODO: Add your control notification handler code here
m_cDonghua.Stop();
m_CStop.EnableWindow(FALSE);
m_CStart.EnableWindow(TRUE);
}
相关文章推荐
- Android利用Drawable Animation实现图片动画播放
- 利用TweenPosition 动画制作直角动画播放。
- 利用UIImageView连续播放图片动画效果
- 利用Java 3D技术播放动画之JMF技术
- Android - 页面切换,动画播放,程序锁,Activity启动模式,利用内容观察者同步数据库变化
- 利用Java 3D技术播放动画之JMF技术
- 利用资源文件在dephi程序中播放AVI动画的方法
- 利用Cocostudio动画编辑器导出资源播放动画
- 利用Java 3D技术播放动画之JMF技术(2)
- CoCos2d-x利用库函数进行动画播放
- 利用Java 3D技术播放动画之JMF技术(3)
- VB利用PictureBox控件播放GIF动画
- 利用Java 3D技术播放动画之JMF技术-Java基础-Java-编程开发
- cocos2d-x JS 利用重复动作实现动画播放(实现倒计时)
- FreeSWITCH在呼叫失败的情况下如何播放语音提示
- iOS利用Runtime自定义控制器POP手势动画
- quick-lua 获取Cocos Studios动画播放回调
- 【Android 基础】利用主题Theme自定义Activity切换动画
- 利用爬虫和Django+echarts建立自己的动画人气统计小站
- CSS3两个动画顺序衔接播放