【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了PlayMIDI.cpp相关资料,希望对各位网友有所帮助!
// PlayMIDI.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "PlayMIDI.h"
#include "PlayMIDIDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPlayMidiApp
BEGIN_MESSAGE_MAP(CPlayMidiApp, CWinApp)
//{{AFX_MSG_MAP(CPlayMidiApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CPlayMidiApp 构造函数
CPlayMidiApp::CPlayMidiApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CPlayMidiApp object
CPlayMidiApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CPlayMidiApp initialization
BOOL CPlayMidiApp::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.
CPlayMidiDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 可加入“点选<OK-确定>,对话框消失时”的程序码。
}
else if (nResponse == IDCANCEL)
{
// TODO: 可加入“点选<Cancel-取消>,对话框消失时”的程序码。
}
// 对话框结束后,会跳出应用
程序的消息。当消息开始后,
// 若要结束应用程序请回传False
return FALSE;
}