1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // InputPsw2.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ylgl.h"
- #include "InputPsw2.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_mode=0;
- //}}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
- BOOL InputPsw2::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- if(m_mode)
- SetWindowText("ÇëÊäÈë¾ÉÃÜÂë");
- GetDlgItem(IDC_EDIT1)->SetFocus();
- return 0; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void InputPsw2::OnOK()
- {
- // TODO: Add extra validation here
- UpdateData();
- m_psw.TrimLeft ();
- m_psw.TrimRight ();
- if(m_psw=="")return;
- CDialog::OnOK();
- }
|