文档详情

VC电子邮件接收.doc

发布:2018-04-18约3.58千字共4页下载文档
文本预览下载声明
// MailRecieve.cpp : Defines the class behaviors for the application. // #include stdafx.h #include MailRecieve.h #include MailRecieveDlg.h #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CMailRecieveApp BEGIN_MESSAGE_MAP(CMailRecieveApp, CWinApp) //{{AFX_MSG_MAP(CMailRecieveApp) // 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() ///////////////////////////////////////////////////////////////////////////// // CMailRecieveApp construction CMailRecieveApp::CMailRecieveApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CMailRecieveApp object CMailRecieveApp theApp; ///////////////////////////////////////////////////////////////////////////// // CMailRecieveApp initialization BOOL CMailRecieveApp::InitInstance() { AfxEnableControlContainer(); ::CoInitialize(NULL); // 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 CMailRecieveDlg 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, rat
显示全部
相似文档