www.pudn.com > MailAgent.rar > MailAgent.cpp
// MailAgent.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "MailAgent.h"
#include "MailAgentDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMailAgentApp
BEGIN_MESSAGE_MAP(CMailAgentApp, CWinApp)
//{{AFX_MSG_MAP(CMailAgentApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CMailAgentApp construction
CMailAgentApp::CMailAgentApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
CMailAgentApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMailAgentApp initialization
BOOL CMailAgentApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
CMailAgentDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}