資源簡介
ffmpeg+mfc 實現的播放器 , 用VS2005寫的 具有播放 暫停 停止 快進快退 設置音量大小 全屏等功能 非常適合入門者使用。
代碼片段和文件信息
//?FFMPEG_SDL_MFC_Player_1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FFMPEG_SDL_MFC_Player_1.h“
#include?“FFMPEG_SDL_MFC_Player_1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CFFMPEG_SDL_MFC_Player_1App
BEGIN_MESSAGE_MAP(CFFMPEG_SDL_MFC_Player_1App?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CFFMPEG_SDL_MFC_Player_1App?construction
CFFMPEG_SDL_MFC_Player_1App::CFFMPEG_SDL_MFC_Player_1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CFFMPEG_SDL_MFC_Player_1App?object
CFFMPEG_SDL_MFC_Player_1App?theApp;
//?CFFMPEG_SDL_MFC_Player_1App?initialization
BOOL?CFFMPEG_SDL_MFC_Player_1App::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
CFFMPEG_SDL_MFC_Player_1Dlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???15230976??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????391168??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????1732096??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????2915328??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????237056??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????2908160??2013-11-23?08:36??FFMPEG_SDL_MFC_Pla
?????文件????6097780??2013-11-23?08:36??FFMPEG_SDL_MFC_Pla
?????文件???11045888??2013-11-23?08:36??FFMPEG_SDL_MFC_Pla
?????文件?????177664??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????303616??2012-01-15?11:49??FFMPEG_SDL_MFC_Pla
?????文件?????110080??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????342016??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件???15230976??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????391168??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????1732096??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????2915328??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????237056??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????3768312??2008-07-29?08:05??FFMPEG_SDL_MFC_Pla
?????文件????3058688??2013-11-21?11:27??FFMPEG_SDL_MFC_Pla
?????文件?????177664??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????303616??2012-01-15?11:49??FFMPEG_SDL_MFC_Pla
?????文件?????110080??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件?????342016??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件????2359350??2013-08-14?10:17??FFMPEG_SDL_MFC_Pla
?????文件???????8309??2009-10-02?13:35??FFMPEG_SDL_MFC_Pla
?????文件?????168292??2013-06-25?10:32??FFMPEG_SDL_MFC_Pla
?????文件???????3060??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件???????2129??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件??????10659??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
?????文件???????4007??2012-11-06?06:57??FFMPEG_SDL_MFC_Pla
............此處省略203個文件信息
評論
共有 條評論