// DLG_AddBack.cpp : implementation file // #include "stdafx.h" #include "corpsms.h" #include "DLG_AddBack.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // DLG_AddBack dialog DLG_AddBack::DLG_AddBack(const TCHAR * pTitle,CWnd* pParent /*=NULL*/) : CDialog(DLG_AddBack::IDD, pParent) { //{{AFX_DATA_INIT(DLG_AddBack) m_bNext = FALSE; //}}AFX_DATA_INIT m_strTitle = pTitle; } void DLG_AddBack::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(DLG_AddBack) DDX_Check(pDX, IDC_ADDWARNING_NEXT, m_bNext); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(DLG_AddBack, CDialog) //{{AFX_MSG_MAP(DLG_AddBack) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // DLG_AddBack message handlers BOOL DLG_AddBack::OnInitDialog() { CDialog::OnInitDialog(); CButton * pButton = (CButton*)GetDlgItem(IDC_ADDWARNING_SKIP); pButton->SetCheck(true); CString str; this->GetWindowText(str); str = str+ _T(" ["+m_strTitle+"]"); this->SetWindowText(str); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void DLG_AddBack::OnOK() { if (!UpdateData(true)) return ; m_bShowReMobile = !m_bNext; CButton * pButton = (CButton*)GetDlgItem(IDC_ADDWARNING_SKIP); if ( pButton->GetCheck() ) m_lReMobileType = 0; else m_lReMobileType = 1; CDialog::OnOK(); }