欢迎来到天天文库
浏览记录
ID:40571398
大小:29.00 KB
页数:4页
时间:2019-08-04
《VC电子邮件接收》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、//MailRecieve.cpp:Definestheclassbehaviorsfortheapplication.//#include"stdafx.h"#include"MailRecieve.h"#include"MailRecieveDlg.h"#ifdef_DEBUG#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=__FILE__;#endif///////////////////////////////////////////////////////////
2、////////////////////CMailRecieveAppBEGIN_MESSAGE_MAP(CMailRecieveApp,CWinApp)//{{AFX_MSG_MAP(CMailRecieveApp)//NOTE-theClassWizardwilladdandremovemappingmacroshere.//DONOTEDITwhatyouseeintheseblocksofgeneratedcode!//}}AFX_MSGON_COMMAND(ID_HELP,CWinApp::OnHelp)END_MESSAGE
3、_MAP()///////////////////////////////////////////////////////////////////////////////CMailRecieveAppconstructionCMailRecieveApp::CMailRecieveApp(){//TODO:addconstructioncodehere,//PlaceallsignificantinitializationinInitInstance}///////////////////////////////////////////
4、////////////////////////////////////TheoneandonlyCMailRecieveAppobjectCMailRecieveApptheApp;///////////////////////////////////////////////////////////////////////////////CMailRecieveAppinitializationBOOLCMailRecieveApp::InitInstance(){AfxEnableControlContainer();::CoIni
5、tialize(NULL);//Standardinitialization//Ifyouarenotusingthesefeaturesandwishtoreducethesize//ofyourfinalexecutable,youshouldremovefromthefollowing//thespecificinitializationroutinesyoudonotneed.#ifdef_AFXDLLEnable3dControls();//CallthiswhenusingMFCinasharedDLL#elseEnable
6、3dControlsStatic();//CallthiswhenlinkingtoMFCstatically#endifCMailRecieveDlgdlg;m_pMainWnd=&dlg;intnResponse=dlg.DoModal();if(nResponse==IDOK){//TODO:Placecodeheretohandlewhenthedialogis//dismissedwithOK}elseif(nResponse==IDCANCEL){//TODO:Placecodeheretohandlewhenthedial
7、ogis//dismissedwithCancel}//Sincethedialoghasbeenclosed,returnFALSEsothatweexitthe//application,ratherthanstarttheapplication'smessagepump.returnFALSE;}intCMailRecieveApp::ExitInstance(){//TODO:Addyourspecializedcodehereand/orcallthebaseclass::CoUninitialize();returnCWin
8、App::ExitInstance();}//MailRecieve.h:mainheaderfilefortheMAILRECIEVEapplication//#if!defined(AFX_MAILRE
此文档下载收益归作者所有