• 大小: 3.8MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-27
  • 语言: C/C++
  • 标签: c++  

资源简介

漂亮的电子邮箱。界面按钮都十分漂亮。可以借鉴。

资源截图

代码片段和文件信息

// myMailServer.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “myMailServer.h“
#include “myMailServerDlg.h“
#include “MySetDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyMailServerApp

BEGIN_MESSAGE_MAP(CMyMailServerApp CWinApp)
//{{AFX_MSG_MAP(CMyMailServerApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CMyMailServerApp construction

CMyMailServerApp::CMyMailServerApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMyMailServerApp object

CMyMailServerApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMyMailServerApp initialization

BOOL CMyMailServerApp::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

CMySetDlg sdlg;
sdlg.m_Server = “pop3.163.com“;
sdlg.m_Psd = “123456“;
sdlg.m_Usr = “uutkuu@163.com“;

if(sdlg.DoModal() == IDOK)
{
CMyMailServerDlg dlg;
m_pMainWnd = &dlg;

dlg.m_mailServer = sdlg.m_Server;
dlg.m_mailPsd = sdlg.m_Psd;
dlg.m_mailUsr = sdlg.m_Usr;
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 rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-07-24 15:57  第4章\
     目录           0  2015-07-24 15:57  第4章\电子邮箱\
     目录           0  2015-09-17 20:31  第4章\电子邮箱\myMailServer\
     目录           0  2015-07-24 15:57  第4章\电子邮箱\myMailServer\BitButtonNL\
     文件       19183  2011-04-13 23:54  第4章\电子邮箱\myMailServer\BitButtonNL\BitButtonNL.cpp
     文件       11748  2004-06-05 10:48  第4章\电子邮箱\myMailServer\BitButtonNL\BitButtonNL.h
     目录           0  2015-07-24 15:57  第4章\电子邮箱\myMailServer\bmp\
     文件      235978  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Back.bmp
     文件        8758  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Blue_High.bmp
     文件        8758  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Blue_Normal.bmp
     文件        8758  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Kill_High.bmp
     文件        8758  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Kill_Normal.bmp
     文件        3398  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Left_High.bmp
     文件        3398  2010-05-05 16:08  第4章\电子邮箱\myMailServer\bmp\Btn_Left_Normal.bmp
     文件        1478  2010-05-05 16:07  第4章\电子邮箱\myMailServer\bmp\Btn_Max_Disable.bmp
     文件        1478  2010-05-05 16:15  第4章\电子邮箱\myMailServer\bmp\Btn_Min_Click.bmp
     文件         358  2010-05-05 16:15  第4章\电子邮箱\myMailServer\bmp\Btn_Min_High.bmp
     文件        1478  2010-05-05 16:15  第4章\电子邮箱\myMailServer\bmp\Btn_Min_Normal.bmp
     文件        3398  2010-05-05 16:07  第4章\电子邮箱\myMailServer\bmp\Btn_Right_High.bmp
     文件        3398  2010-05-05 16:07  第4章\电子邮箱\myMailServer\bmp\Btn_Right_Normal.bmp
     文件        1478  2010-05-05 16:15  第4章\电子邮箱\myMailServer\bmp\Btn_X_Click.bmp
     文件         358  2010-05-05 16:07  第4章\电子邮箱\myMailServer\bmp\Btn_X_High.bmp
     文件        1478  2010-05-05 16:07  第4章\电子邮箱\myMailServer\bmp\Btn_X_Normal.bmp
     目录           0  2015-08-26 11:48  第4章\电子邮箱\myMailServer\Debug\
     文件       51349  2015-08-07 15:29  第4章\电子邮箱\myMailServer\Debug\BitButtonNL.obj
     文件       55188  2001-09-28 08:00  第4章\电子邮箱\myMailServer\Debug\jmail.tlh
     文件       56870  2001-09-28 08:00  第4章\电子邮箱\myMailServer\Debug\jmail.tli
     文件     1925240  2015-08-26 11:48  第4章\电子邮箱\myMailServer\Debug\myMailServer.exe
     文件      439748  2015-08-26 11:48  第4章\电子邮箱\myMailServer\Debug\myMailServer.ilk
     文件       21964  2015-08-20 08:29  第4章\电子邮箱\myMailServer\Debug\myMailServer.obj
     文件     7578396  2015-08-07 15:29  第4章\电子邮箱\myMailServer\Debug\myMailServer.pch
............此处省略66个文件信息

评论

共有 条评论