www.pudn.com > symbian_sms_alarm.rar > SeekItemDlg.cpp


// SeekItemDlg.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "MsgDemo.h" 
#include "SeekItemDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSeekItemDlg dialog 
 
 
CSeekItemDlg::CSeekItemDlg(CWnd* pParent /*=NULL*/) 
	: CDialog(CSeekItemDlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CSeekItemDlg) 
	m_Id = _T(""); 
	//}}AFX_DATA_INIT 
} 
 
 
void CSeekItemDlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CSeekItemDlg) 
	DDX_Control(pDX, IDC_DOWN, m_Down); 
	DDX_Text(pDX, IDC_ID, m_Id); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CSeekItemDlg, CDialog) 
	//{{AFX_MSG_MAP(CSeekItemDlg) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSeekItemDlg message handlers 
 
BOOL CSeekItemDlg::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	 
	// TODO: Add extra initialization here 
	this->m_Down.SetCheck(TRUE); 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
} 
 
void CSeekItemDlg::OnOK()  
{ 
	UpdateData(TRUE); 
	if(this->m_Id.IsEmpty()) 
		::AfxMessageBox("输入搜索列队编号为空,请输入信息!"); 
	else 
		CDialog::OnOK(); 
}