在MFC(SDI应用程序)中使用动画控件播放.avi文件 [英] Playing .avi file with Animation control in MFC(SDI application)

查看:304
本文介绍了在MFC(SDI应用程序)中使用动画控件播放.avi文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用对话框中的动画控件播放.avi文件.我使用了动画控件,然后通过控件的变量调用了各个函数,如-open(),play()?适用于小型视频(100-300 kb),但
在播放沉重的视频时会出现问题.任何Guesses都一样.??

另外,我想在同一对话框中同时显示图像和视频.欢迎提出建议.是否可以将动画控件用于显示视频和图像的目的?

请回复.这很紧急.

在此先感谢.

Hi I want to play a .avi file using animation control in dialog boxes.I used animation control and then through the variable of the control, i called the respective functions like-open(),play()?It is working fine for small sized videos(100-300 kb),but
there is problem in playing heavy videos.Any Guesses abou the same.??

Also ,I want to display both images and video in the same dialog box.Suggestions welcome.Is it possible to use animation control for both the purposes-displaying videos as well as images?

Please reply.It is bit urgent.

Thanks in Advance.

推荐答案

http://msdn.microsoft.com/en-us/library/46axw027(v=vs.80).aspx[^]

This gives a thread procedure. You have to call this procedure using
AfxBeginThread()funation from your main dialog.



我只是在OnInitDialog()中使用以下代码行


m_wndAnimate.Open(_T("D:\\ Sample.avi;"));

m_wndAnimate.CenterWindow();

m_wndAnimate.Play(0,-1,-1);

其中
m_wndAnimate = cAnimate控件的变量.

请查看并分享您的回复.
Hi,
I am simply using the following lines of code in OnInitDialog()


m_wndAnimate.Open(_T("D:\\Sample.avi;"));

m_wndAnimate.CenterWindow();

m_wndAnimate.Play(0,-1,-1);

where
m_wndAnimate =variable of cAnimate control.

Please review and share your response.


这篇关于在MFC(SDI应用程序)中使用动画控件播放.avi文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆