資源簡介
MFC寫的音樂播放器完整版(包括歌詞顯示,代碼清晰有注釋)我也是為課程設(shè)計寫的,現(xiàn)在完成任務(wù)了,發(fā)出來讓需要的人參考

代碼片段和文件信息
//?Mp3Player.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Mp3Player.h“
#include?“Mp3PlayerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMp3PlayerApp
BEGIN_MESSAGE_MAP(CMp3PlayerApp?CWinApp)
//{{AFX_MSG_MAP(CMp3PlayerApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMp3PlayerApp?construction
CMp3PlayerApp::CMp3PlayerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMp3PlayerApp?object
CMp3PlayerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMp3PlayerApp?initialization
BOOL?CMp3PlayerApp::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
CMp3PlayerDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-06-14?09:08??Mp3Pla
?????目錄???????????0??2014-06-13?23:41??Mp3Pla
?????文件?????4998144??2014-06-13?20:26??Mp3Pla
?????文件?????2175038??2014-06-13?23:41??Mp3Pla
?????文件??????260128??2014-06-13?23:41??Mp3Pla
?????文件???????14691??2014-06-13?23:26??Mp3Pla
?????文件?????6934964??2014-06-12?23:48??Mp3Pla
?????文件??????435200??2014-06-13?23:41??Mp3Pla
?????文件?????1716036??2014-06-13?22:28??Mp3Pla
?????文件????????3824??2014-06-13?23:26??Mp3Pla
?????文件???????56946??2014-06-13?23:41??Mp3Pla
?????文件???????67267??2014-06-13?23:41??Mp3Pla
?????文件??????105562??2014-06-12?23:48??Mp3Pla
?????文件?????1374947??2014-06-12?23:48??Mp3Pla
?????文件??????222208??2014-06-14?00:23??Mp3Pla
?????文件??????413696??2014-06-13?23:41??Mp3Pla
?????文件???????36788??2014-06-14?06:39??Mp3Pla
?????文件????????2153??2014-06-14?08:06??Mp3Pla
?????文件????????2105??2014-06-12?07:42??Mp3Pla
?????文件????????4436??2014-06-13?23:49??Mp3Pla
?????文件?????????526??2014-06-12?08:25??Mp3Pla
?????文件????????1357??2014-06-12?07:42??Mp3Pla
?????文件???????66560??2014-06-14?09:08??Mp3Pla
?????文件???????48640??2014-06-14?09:08??Mp3Pla
?????文件?????????254??2014-06-14?09:08??Mp3Pla
?????文件????????6781??2014-06-14?06:39??Mp3Pla
?????文件???????16650??2014-06-14?08:06??Mp3Pla
?????文件????????2291??2014-06-14?05:30??Mp3Pla
?????文件????????3633??2014-06-12?07:42??Mp3Pla
?????目錄???????????0??2014-06-14?06:39??Mp3Pla
?????文件???????28672??2014-06-14?09:08??Mp3Pla
............此處省略17個文件信息
評論
共有 條評論