-
大小: 3.74MB文件類型: .rar金幣: 2下載: 1 次發布日期: 2023-09-10
- 語言: C/C++
- 標簽: MediaPlayer??MFC??
資源簡介
利用mediaplayer創建最簡單的媒體播放器,支持AVI等各種視頻
利用mediaplayer播放器,須包含二十多個微軟的播放器文件,其中源碼文件都是空的,這些文件可以從網上下載,也可使用本例中現成的文件。
解說見博客:http://blog.csdn.net/mihang2/article/details/39964323

代碼片段和文件信息
//?LicensePlayer.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“LicensePlayer.h“
#include?“LicensePlayerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CLicensePlayerApp
BEGIN_MESSAGE_MAP(CLicensePlayerApp?CWinApp)
????ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?CLicensePlayerApp?construction
CLicensePlayerApp::CLicensePlayerApp()
{
????//?TODO:?add?construction?code?here
????//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CLicensePlayerApp?object
CLicensePlayerApp?theApp;
//?CLicensePlayerApp?initialization
BOOL?CLicensePlayerApp::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“));
????CLicensePlayerDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????28305??2009-11-29?02:31??LicensePla
?????文件???????1254??2014-10-08?10:15??LicensePla
?????文件???????2013??2014-10-08?10:15??LicensePla
?????文件???????3050??2014-10-08?10:15??LicensePla
?????文件???????2945??2014-10-08?10:15??LicensePla
?????文件???????3109??2014-10-08?10:15??LicensePla
?????文件???????5110??2014-10-08?10:15??LicensePla
?????文件???????1323??2014-10-08?10:15??LicensePla
?????文件???????1139??2014-10-08?10:15??LicensePla
?????文件???????1412??2014-10-08?10:15??LicensePla
?????文件???????1586??2014-10-08?10:15??LicensePla
?????文件???????4207??2014-10-08?10:15??LicensePla
?????文件???????4395??2014-10-08?10:15??LicensePla
?????文件???????5000??2014-10-08?10:15??LicensePla
?????文件???????3513??2014-10-08?10:15??LicensePla
?????文件???????1282??2014-10-08?10:15??LicensePla
?????文件????????911??2014-10-08?10:15??LicensePla
?????文件???????5623??2014-10-08?10:15??LicensePla
?????文件???????6342??2014-10-08?10:15??LicensePla
?????文件???????6520??2014-10-08?10:15??LicensePla
?????文件???????8258??2014-10-08?10:15??LicensePla
?????文件???????3284??2014-10-08?10:15??LicensePla
?????文件???????2144??2014-10-08?10:15??LicensePla
?????文件???????4676??2014-10-08?10:15??LicensePla
?????文件???????5303??2014-10-08?10:15??LicensePla
?????文件???????8358??2009-12-04?00:45??LicensePla
?????文件??????42588??2014-10-10?15:59??LicensePla
?????文件???????2301??2014-10-08?10:15??LicensePla
?????文件????????567??2014-10-08?10:15??LicensePla
?????文件???????7343??2014-10-10?15:59??LicensePla
............此處省略48個文件信息
評論
共有 條評論