87 lines
1.8 KiB
C++
87 lines
1.8 KiB
C++
// DLG_FiltWarning.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "corpsms.h"
|
|
#include "DLG_FiltWarning.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DLG_FiltWarning dialog
|
|
|
|
|
|
DLG_FiltWarning::DLG_FiltWarning(CWnd* pParent /*=NULL*/)
|
|
: CDialog(DLG_FiltWarning::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(DLG_FiltWarning)
|
|
m_strMsg = _T("");
|
|
m_strWord = _T("");
|
|
//}}AFX_DATA_INIT
|
|
m_lStatus = 0;
|
|
}
|
|
|
|
|
|
void DLG_FiltWarning::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(DLG_FiltWarning)
|
|
DDX_Text(pDX, IDC_FILTWARNING_MSG, m_strMsg);
|
|
DDX_Text(pDX, IDC_FILTWARNING_WORD, m_strWord);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(DLG_FiltWarning, CDialog)
|
|
//{{AFX_MSG_MAP(DLG_FiltWarning)
|
|
ON_BN_CLICKED(IDC_FILTWARNING_OK, OnFiltwarningOk)
|
|
ON_BN_CLICKED(IDC_FILTWARNING_NONOTIFY, OnFiltwarningNonotify)
|
|
ON_BN_CLICKED(IDC_FILTWARNING_CANCEL, OnFiltwarningCancel)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DLG_FiltWarning message handlers
|
|
|
|
BOOL DLG_FiltWarning::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void DLG_FiltWarning::SetParam(TCHAR *pMsg, TCHAR *pWord)
|
|
{
|
|
m_strMsg = pMsg;
|
|
m_strWord = pWord;
|
|
}
|
|
|
|
long DLG_FiltWarning::GetParam()
|
|
{
|
|
return m_lStatus;
|
|
}
|
|
|
|
void DLG_FiltWarning::OnFiltwarningOk()
|
|
{
|
|
m_lStatus = 1; //继续提交
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void DLG_FiltWarning::OnFiltwarningNonotify()
|
|
{
|
|
m_lStatus = 2; //继续提交,下次不再提示
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void DLG_FiltWarning::OnFiltwarningCancel()
|
|
{
|
|
m_lStatus = 0; //取消提交
|
|
CDialog::OnOK();
|
|
}
|