資源簡介
一個簡單的Avi文件播放器(VC源代碼)
一個書上的例子:通過CAnimation控件實現(xiàn)AVI文件的播放,希望有助于大家的學習。
歡迎大家下載,謝謝!!!

代碼片段和文件信息
//?animateDlg.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“animateDlg.h“
#include?“animateDlgDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAnimateDlgApp
BEGIN_MESSAGE_MAP(CAnimateDlgApp?CWinApp)
//{{AFX_MSG_MAP(CAnimateDlgApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAnimateDlgApp?construction
CAnimateDlgApp::CAnimateDlgApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAnimateDlgApp?object
CAnimateDlgApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAnimateDlgApp?initialization
BOOL?CAnimateDlgApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CAnimateDlgDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1218??2008-01-08?11:02??07\animateDlg.clw
?????文件???????2119??2008-01-08?11:02??07\animateDlg.cpp
?????文件???????4685??2008-01-08?11:02??07\animateDlg.dsp
?????文件????????589??2008-01-08?11:02??07\animateDlg.dsw
?????文件???????1368??2008-01-08?11:02??07\animateDlg.h
?????文件??????66560??2010-08-28?16:59??07\animateDlg.ncb
?????文件?????568832??2010-08-28?16:59??07\animateDlg.opt
?????文件???????1989??2010-08-28?16:59??07\animateDlg.plg
?????文件???????6047??2008-01-08?11:02??07\animateDlg.rc
?????文件???????4689??2008-01-08?11:02??07\animateDlgDlg.cpp
?????文件???????1475??2008-01-08?11:02??07\animateDlgDlg.h
?????文件???????3510??2008-01-08?11:02??07\animation.cpp
?????文件???????2235??2008-01-08?11:02??07\animation.h
?????文件???????1078??2008-01-08?11:02??07\res\animateDlg.ico
?????文件????????402??2008-01-08?11:02??07\res\animateDlg.rc2
?????文件????????780??2008-01-08?11:02??07\resource.h
?????文件???10837504??2008-01-08?11:02??07\soft.avi
?????文件????????212??2008-01-08?11:02??07\StdAfx.cpp
?????文件???????1054??2008-01-08?11:02??07\StdAfx.h
?????目錄??????????0??2010-08-26?18:02??07\res
?????目錄??????????0??2010-08-28?16:59??07
-----------?---------??----------?-----??----
?????????????11506346????????????????????21
評論
共有 條評論