// DLG_Other_AutoSend.cpp : implementation file // #include "stdafx.h" #include "smsmanager.h" #include "DLG_Other_AutoSend.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // DLG_Other_AutoSend dialog DLG_Other_AutoSend::DLG_Other_AutoSend(CWnd* pParent /*=NULL*/) : CDialog(DLG_Other_AutoSend::IDD, pParent) , m_strOverDate(_T("")) , m_bEnableSetPasswd(FALSE) , m_strSetPasswd(_T("")) , m_bAgentSetPasswd(FALSE) , m_strAgentSetPasswd(_T("")) { //{{AFX_DATA_INIT(DLG_Other_AutoSend) m_strEmail = _T(""); m_strMobile = _T(""); m_bEnableEmail = FALSE; m_bEnableMobile = FALSE; m_bEnableOverDate = FALSE; m_strS_Tel = _T(""); m_strS_Name = _T(""); m_strS_Http = _T(""); m_strS_Email = _T(""); m_strS_AgentName = _T(""); m_strSendList = _T(""); //}}AFX_DATA_INIT memset( &m_Data,0,sizeof(m_Data)); m_pWnd = NULL; } void DLG_Other_AutoSend::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(DLG_Other_AutoSend) DDX_Control(pDX, IDD_OTHER_AUTOSEND_SENDLIST, m_E_SendList); DDX_Control(pDX, IDD_OTHER_AUTOSEND_MOBILE, m_E_Mobile); DDX_Control(pDX, IDD_OTHER_AUTOSEND_EMAIL, m_E_Email); DDX_Control(pDX, IDD_OTHER_AUTOSEND_OVERDATE, m_E_OverDate); DDX_Text(pDX, IDD_OTHER_AUTOSEND_EMAIL, m_strEmail); DDV_MaxChars(pDX, m_strEmail, 1000); DDX_Text(pDX, IDD_OTHER_AUTOSEND_MOBILE, m_strMobile); DDV_MaxChars(pDX, m_strMobile, 500); DDX_Text(pDX, IDD_OTHER_AUTOSEND_OVERDATE, m_strOverDate); DDV_MaxChars(pDX, m_strOverDate, 500); DDX_Check(pDX, IDD_OTHER_AUTOSEND_EMAIL_ENABLE, m_bEnableEmail); DDX_Check(pDX, IDD_OTHER_AUTOSEND_MOBILE_ENABLE, m_bEnableMobile); DDX_Check(pDX, IDD_OTHER_AUTOSEND_OVERDATE_ENABLE, m_bEnableOverDate); DDX_Text(pDX, IDD_OTHER_AUTOSEND_S_TEL, m_strS_Tel); DDV_MaxChars(pDX, m_strS_Tel, 31); DDX_Text(pDX, IDD_OTHER_AUTOSEND_S_NAME, m_strS_Name); DDV_MaxChars(pDX, m_strS_Name, 15); DDX_Text(pDX, IDD_OTHER_AUTOSEND_S_HTTP, m_strS_Http); DDV_MaxChars(pDX, m_strS_Http, 63); DDX_Text(pDX, IDD_OTHER_AUTOSEND_S_EMAIL, m_strS_Email); DDV_MaxChars(pDX, m_strS_Email, 63); DDX_Text(pDX, IDD_OTHER_AUTOSEND_S_AGENTNAME, m_strS_AgentName); DDV_MaxChars(pDX, m_strS_AgentName, 63); DDX_Text(pDX, IDD_OTHER_AUTOSEND_SENDLIST, m_strSendList); DDV_MaxChars(pDX, m_strSendList, 500); //}}AFX_DATA_MAP DDX_Check(pDX, IDD_OTHER_AUTOSEND_SETPASSWD_ENABLE, m_bEnableSetPasswd); DDX_Control(pDX, IDD_OTHER_AUTOSEND_SETPASSWD, m_E_SetPasswd); DDX_Text(pDX, IDD_OTHER_AUTOSEND_SETPASSWD, m_strSetPasswd); DDV_MaxChars(pDX, m_strSetPasswd, 500); DDX_Check(pDX, IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_ENABLE, m_bAgentSetPasswd); DDX_Text(pDX, IDD_OTHER_AUTOSEND_AGENT_SETPASSWD, m_strAgentSetPasswd); DDV_MaxChars(pDX, m_strAgentSetPasswd, 500); DDX_Control(pDX, IDD_OTHER_AUTOSEND_AGENT_SETPASSWD, m_E_AgentSetPasswd); } BEGIN_MESSAGE_MAP(DLG_Other_AutoSend, CDialog) //{{AFX_MSG_MAP(DLG_Other_AutoSend) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_CORPNAME, OnOtherAutosendEmailCorpname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_CORPSNAME, OnOtherAutosendEmailCorpsname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_MON, OnOtherAutosendEmailMon) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_JCB, OnOtherAutosendEmailJcb) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_BILL, OnOtherAutosendEmailBill) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_CORPID, OnOtherAutosendEmailCorpid) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPNAME, OnOtherAutosendMobileCorpname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPSNAME, OnOtherAutosendMobileCorpsname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPID, OnOtherAutosendMobileCorpid) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_MON, OnOtherAutosendMobileMon) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_OVERDATE, OnOtherAutosendEmailOverdate) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPNAME2, OnOtherAutosendMobileCorpname2) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPSNAME2, OnOtherAutosendMobileCorpsname2) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_MOBILE_CORPID2, OnOtherAutosendMobileCorpid2) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_EMAIL_OVERDATE2, OnOtherAutosendEmailOverdate2) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_S_NAME_S, OnOtherAutosendSNameS) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_S_AGENTNAME_S, OnOtherAutosendSAgentnameS) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_S_HTTP_S, OnOtherAutosendSHttpS) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_S_EMAIL_S, OnOtherAutosendSEmailS) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_S_TEL_S, OnOtherAutosendSTelS) ON_EN_SETFOCUS(IDD_OTHER_AUTOSEND_EMAIL, OnSetfocusOtherAutosendEmail) ON_EN_SETFOCUS(IDD_OTHER_AUTOSEND_MOBILE, OnSetfocusOtherAutosendMobile) ON_EN_SETFOCUS(IDD_OTHER_AUTOSEND_SENDLIST, OnSetfocusOtherAutosendSendlist) //}}AFX_MSG_MAP ON_BN_CLICKED(IDD_OTHER_AUTOSEND_OVERDATE_CORPNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_OVERDATE_CORPSNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpsname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_OVERDATE_CORPID, &DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpid) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_OVERDATE_MON, &DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateMon) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_OVERDATE_OVERDATE, &DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateOverdate) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_SETPASSWD_CORPNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_SETPASSWD_CORPSNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpsname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_SETPASSWD_CORPID, &DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpid) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_SETPASSWD_USERNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdUsername) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_SETPASSWD_MOBILE, &DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdMobile) ON_BN_CLICKED(IDOK, &DLG_Other_AutoSend::OnBnClickedOk) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_CORPNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_CORPSNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpsname) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_CORPID, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpid) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_USERNAME, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdUsername) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_PASSWD, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdPasswd) ON_BN_CLICKED(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD_MOBILE, &DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdMobile) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // DLG_Other_AutoSend message handlers BOOL DLG_Other_AutoSend::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_strEmail = m_Data.szEmail; m_strMobile = m_Data.szMobile; m_strOverDate = m_Data.szOverDate; m_strSetPasswd = m_Data.szSetPasswd; m_strAgentSetPasswd = m_Data.szAgentSetPasswd; m_bEnableEmail = m_Data.bEmail; m_bEnableMobile = m_Data.bMobile; m_bEnableOverDate = m_Data.bOverDate; m_bEnableSetPasswd = m_Data.bSetPasswd; m_bAgentSetPasswd = m_Data.bAgentSetPasswd; m_strSendList = m_Data.szSendList; m_strS_Name = m_Data.szS_Name; m_strS_AgentName = m_Data.szS_AgentName; m_strS_Http = m_Data.szS_Http; m_strS_Email = m_Data.szS_Email; m_strS_Tel = m_Data.szS_Tel; UpdateData(false); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void DLG_Other_AutoSend::SetParam(ANS_Other_AutoSend2_Data data) { m_Data = data; } ANS_Other_AutoSend2_Data DLG_Other_AutoSend::GetParam() { return m_Data; } void DLG_Other_AutoSend::OnOtherAutosendEmailCorpname() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPNAME%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailCorpsname() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPSNAME%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailMon() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%BILLDATE%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailJcb() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%JCB%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailBill() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%BILL%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailCorpid() { m_E_Email.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPID%")); m_E_Email.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpname() { m_E_Mobile.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPNAME%")); m_E_Mobile.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpsname() { m_E_Mobile.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPSNAME%")); m_E_Mobile.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpid() { m_E_Mobile.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPID%")); m_E_Mobile.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileMon() { m_E_Mobile.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%SMSUSED%")); m_E_Mobile.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailOverdate() { m_E_Mobile.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%OVRDATE%")); m_E_Mobile.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpname2() { m_E_SendList.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPNAME%")); m_E_SendList.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpsname2() { m_E_SendList.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPSNAME%")); m_E_SendList.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendMobileCorpid2() { m_E_SendList.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%CORPID%")); m_E_SendList.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendEmailOverdate2() { m_E_SendList.SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%LISTDATE%")); m_E_SendList.SetFocus(); } void DLG_Other_AutoSend::OnOtherAutosendSNameS() { if ( m_pWnd ) { m_pWnd->SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%S_NAME%")); m_pWnd->SetFocus(); } } void DLG_Other_AutoSend::OnOtherAutosendSAgentnameS() { if ( m_pWnd ) { m_pWnd->SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%S_AGENTNAME%")); m_pWnd->SetFocus(); } } void DLG_Other_AutoSend::OnOtherAutosendSHttpS() { if ( m_pWnd ) { m_pWnd->SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%S_HTTP%")); m_pWnd->SetFocus(); } } void DLG_Other_AutoSend::OnOtherAutosendSEmailS() { if ( m_pWnd ) { m_pWnd->SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%S_EMAIL%")); m_pWnd->SetFocus(); } } void DLG_Other_AutoSend::OnOtherAutosendSTelS() { if ( m_pWnd ) { m_pWnd->SendMessage(EM_REPLACESEL,false,(LPARAM)(LPCTSTR)_T("%S_TEL%")); m_pWnd->SetFocus(); } } void DLG_Other_AutoSend::OnSetfocusOtherAutosendEmail() { m_pWnd = &m_E_Email; } void DLG_Other_AutoSend::OnSetfocusOtherAutosendMobile() { m_pWnd = &m_E_Mobile; } void DLG_Other_AutoSend::OnSetfocusOtherAutosendSendlist() { m_pWnd = &m_E_SendList; } void DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpname() { m_E_OverDate.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPNAME%")); m_E_OverDate.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpsname() { m_E_OverDate.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPSNAME%")); m_E_OverDate.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateCorpid() { m_E_OverDate.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPID%")); m_E_OverDate.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateMon() { m_E_OverDate.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%SMSUSED%")); m_E_OverDate.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendOverdateOverdate() { m_E_OverDate.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%OVRDATE%")); m_E_OverDate.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpname() { m_E_SetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPNAME%")); m_E_SetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpsname() { m_E_SetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPSNAME%")); m_E_SetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdCorpid() { m_E_SetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%CORPID%")); m_E_SetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdUsername() { m_E_SetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%LOGINNAME%")); m_E_SetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendSetpasswdMobile() { m_E_SetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%MOBILE%")); m_E_SetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOk() { if (!UpdateData(true)) return; if (m_strEmail.GetLength() <= 0) { MessageBox(_T("自动发送帐单的Email内容不能为,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_EMAIL)->SetFocus(); return; } if (m_strS_Email.GetLength() <= 0) { MessageBox(_T("自动发送帐单的Email地址不能为,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_S_EMAIL)->SetFocus(); return; } if (m_strEmail.GetLength() <= 0) { MessageBox(_T("自动发送短信量低警报内容不能为,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_MOBILE)->SetFocus(); return; } if (m_strEmail.GetLength() <= 0) { MessageBox(_T("自动发送短信量低警报内容不能为,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_MOBILE)->SetFocus(); return; } if (m_strOverDate.GetLength() <= 0) { MessageBox(_T("自动发送过期警报内容不能为空,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_OVERDATE)->SetFocus(); return; } if (m_strSetPasswd.GetLength() <= 0) { MessageBox(_T("自动发送终端客户重置密码短信内容不能为空,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_SETPASSWD)->SetFocus(); return; } if (m_strAgentSetPasswd.GetLength() <= 0) { MessageBox(_T("自动发送代理商重置密码短信内容不能为空,请输入!"), _T("错误"), MB_ICONWARNING); GetDlgItem(IDD_OTHER_AUTOSEND_AGENT_SETPASSWD)->SetFocus(); return; } _tcscpy(m_Data.szEmail, m_strEmail); _tcscpy(m_Data.szMobile, m_strMobile); _tcscpy(m_Data.szOverDate, m_strOverDate); _tcscpy(m_Data.szSetPasswd, m_strSetPasswd); _tcscpy(m_Data.szAgentSetPasswd, m_strAgentSetPasswd); m_Data.bEmail = m_bEnableEmail; m_Data.bMobile = m_bEnableMobile; m_Data.bOverDate = m_bEnableOverDate; m_Data.bSetPasswd = m_bEnableSetPasswd; m_Data.bAgentSetPasswd = m_bAgentSetPasswd; _tcscpy(m_Data.szSendList, m_strSendList); _tcscpy(m_Data.szS_Name, m_strS_Name); _tcscpy(m_Data.szS_AgentName, m_strS_AgentName); _tcscpy(m_Data.szS_Http, m_strS_Http); _tcscpy(m_Data.szS_Email, m_strS_Email); _tcscpy(m_Data.szS_Tel, m_strS_Tel); CDialog::OnOK(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpname() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%AGENTNAME%")); m_E_AgentSetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpsname() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%AGENTSNAME%")); m_E_AgentSetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdCorpid() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%AGENTID%")); m_E_AgentSetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdUsername() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%LOGINNAME%")); m_E_AgentSetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdPasswd() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%PASSWD%")); m_E_AgentSetPasswd.SetFocus(); } void DLG_Other_AutoSend::OnBnClickedOtherAutosendAgentSetpasswdMobile() { m_E_AgentSetPasswd.SendMessage(EM_REPLACESEL, false, (LPARAM)(LPCTSTR)_T("%MOBILE%")); m_E_AgentSetPasswd.SetFocus(); }