資源簡(jiǎn)介
通過MFC的MCI實(shí)現(xiàn)的音樂播放器(VC可視化),實(shí)現(xiàn)了播放、暫停、停止、上一曲、下一曲、快進(jìn)快退、音量調(diào)節(jié)、播放進(jìn)度調(diào)節(jié)、播放列表等,不過代碼中還有些不完善,僅供參考。
代碼片段和文件信息
//?MCIPlayer1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MCIPlayer1.h“
#include?“MCIPlayer1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMCIPlayer1App
BEGIN_MESSAGE_MAP(CMCIPlayer1App?CWinApp)
//{{AFX_MSG_MAP(CMCIPlayer1App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMCIPlayer1App?construction
CMCIPlayer1App::CMCIPlayer1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMCIPlayer1App?object
CMCIPlayer1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMCIPlayer1App?initialization
BOOL?CMCIPlayer1App::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
CMCIPlayer1Dlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-27?18:11??MCIPla
?????目錄???????????0??2013-06-27?18:11??MCIPla
?????文件?????9912376??2012-05-25?02:19??MCIPla
?????文件??????281056??2012-05-25?02:19??MCIPla
?????文件???????14984??2012-05-24?22:25??MCIPla
?????文件?????5893968??2012-05-24?22:12??MCIPla
?????文件??????443392??2012-05-25?02:19??MCIPla
?????文件?????8154524??2012-05-25?00:32??MCIPla
?????文件???????66808??2012-05-25?02:19??MCIPla
?????文件???????12310??2012-05-25?02:19??MCIPla
?????文件??????122343??2012-05-24?22:12??MCIPla
?????文件??????214016??2012-06-20?16:45??MCIPla
?????文件??????389120??2012-05-25?02:19??MCIPla
?????文件?????8175788??2012-08-30?11:46??MCIPla
?????文件????????1819??2012-08-30?11:49??MCIPla
?????文件????????2119??2012-05-17?12:57??MCIPla
?????文件????????5033??2012-05-23?23:55??MCIPla
?????文件?????????528??2012-05-17?12:57??MCIPla
?????文件????????1368??2012-05-17?12:57??MCIPla
?????文件??????123904??2012-08-30?11:49??MCIPla
?????文件???????55808??2012-08-30?11:49??MCIPla
?????文件????????1236??2012-05-25?02:19??MCIPla
?????文件????????7288??2012-05-25?00:32??MCIPla
?????文件???????23899??2012-05-25?02:19??MCIPla
?????文件????????2348??2012-05-24?22:25??MCIPla
?????文件????????3651??2012-05-17?12:57??MCIPla
?????目錄???????????0??2013-06-27?18:11??MCIPla
?????文件????????1828??2012-05-24?23:41??MCIPla
?????文件?????6912054??2012-05-23?22:34??MCIPla
?????文件????????7358??2012-05-23?23:11??MCIPla
?????文件??????154422??2012-05-23?23:41??MCIPla
............此處省略14個(gè)文件信息
評(píng)論
共有 條評(píng)論