www.gusucode.com > VC邮件发送类及程序示例-源码程序 > VC邮件发送类及程序示例-源码程序\code\MDlg.cpp

    // MDlg.cpp : implementation file
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "mc.h"
#include "MDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMDlg dialog


CMDlg::CMDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMDlg, CDialog)
	//{{AFX_MSG_MAP(CMDlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	

	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMDlg message handlers

void CMDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	//CDialog::OnOK();
}

void CMDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
}

void CMDlg::OnButton2() 
{
	// TODO: Add your control notification handler code here
	//CDialog::OnOK();
}

void CMDlg::OnButton3() 
{
	// TODO: Add your control notification handler code here
    CDialog::OnCancel();
}