SettingDlg.cpp
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:1k
- // SettingDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "SimpleMail.h"
- #include "SettingDlg.h"
- // CSettingDlg dialog
- IMPLEMENT_DYNAMIC(CSettingDlg, CDialog)
- CSettingDlg::CSettingDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSettingDlg::IDD, pParent)
- , m_strUserName(_T(""))
- , m_strPassword(_T(""))
- , m_strSmtpServer(_T(""))
- , m_strSendMail(_T(""))
- , m_strPopServer(_T(""))
- , m_bValidate(FALSE)
- {
- }
- CSettingDlg::~CSettingDlg()
- {
- }
- void CSettingDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_EDIT_USER, m_strUserName);
- DDX_Text(pDX, IDC_EDIT_PASSWORD, m_strPassword);
- DDX_Text(pDX, IDC_EDIT_SMTPSERVER, m_strSmtpServer);
- DDX_Text(pDX, IDC_EDIT_SENDMAIL, m_strSendMail);
- DDX_Text(pDX, IDC_EDIT_POPSERVER, m_strPopServer);
- DDX_Check(pDX, IDC_CHK_VALIDATE, m_bValidate);
- }
- BEGIN_MESSAGE_MAP(CSettingDlg, CDialog)
- ON_BN_CLICKED(IDOK, &CSettingDlg::OnBnClickedOk)
- END_MESSAGE_MAP()
- // CSettingDlg message handlers
- void CSettingDlg::OnBnClickedOk()
- {
- // TODO: Add your control notification handler code here
- OnOK();
- }