// InputPsw2.cpp : implementation file // #include "stdafx.h" #include "LYFZSendMsg.h" #include "InputPsw2.h" #include "mysqldata.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // InputPsw2 dialog InputPsw2::InputPsw2(CWnd* pParent /*=NULL*/) : CDialog(InputPsw2::IDD, pParent) { //{{AFX_DATA_INIT(InputPsw2) m_psw = _T(""); m_psw2="lijiaxxxlyfz"; //}}AFX_DATA_INIT } void InputPsw2::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(InputPsw2) DDX_Text(pDX, IDC_EDIT1, m_psw); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(InputPsw2, CDialog) //{{AFX_MSG_MAP(InputPsw2) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // InputPsw2 message handlers void InputPsw2::OnOK() { // TODO: Add extra validation here UpdateData(); if(m_psw==m_psw2) CDialog::OnOK(); } BOOL InputPsw2::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here GetDlgItem(IDC_EDIT1)->SetFocus(); return false; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }