www.pudn.com > MFCtest.rar > MFCtest.cpp
// MFCtest.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "MFCtest.h"
#include "MFCtestDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMFCtestApp
BEGIN_MESSAGE_MAP(CMFCtestApp, CWinApp)
//{{AFX_MSG_MAP(CMFCtestApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMFCtestApp construction
CMFCtestApp::CMFCtestApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMFCtestApp object
CMFCtestApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMFCtestApp initialization
BOOL CMFCtestApp::InitInstance()
{
// Standard initialization
CMFCtestDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}