// InputPsw.cpp : implementation file // #include "stdafx.h" #include "ylgl.h" #include "InputPsw.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // InputPsw dialogdialog InputPsw::InputPsw(CWnd* pParent /*=NULL*/) : CDialog(InputPsw::IDD, pParent) { //{{AFX_DATA_INIT(InputPsw) m_psw = _T(""); //}}AFX_DATA_INIT } void InputPsw::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(InputPsw) DDX_Text(pDX, IDC_EDIT1, m_psw); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(InputPsw, CDialog) //{{AFX_MSG_MAP(InputPsw) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // InputPsw message handlers void InputPsw::OnOK() { // TODO: Add extra validation here UpdateData(); if(m_psw=="huangfei") CDialog::OnOK(); }