123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // InputAuthDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "DBServer.h"
- #include "InputAuthDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // InputAuthDlg dialog
- InputAuthDlg::InputAuthDlg(CWnd* pParent /*=NULL*/)
- : CDialog(InputAuthDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(InputAuthDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void InputAuthDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(InputAuthDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(InputAuthDlg, CDialog)
- //{{AFX_MSG_MAP(InputAuthDlg)
- ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
- ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // InputAuthDlg message handlers
- BOOL InputAuthDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void InputAuthDlg::OnOK()
- {
- CDialog::OnOK();
- }
- void InputAuthDlg::OnChangeEdit2()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- CString authcode;
- GetDlgItemText(IDC_EDIT2, authcode);
- authcode.TrimLeft ();
- authcode.TrimRight ();
- authcode.Replace ("\n", "");
- authcode.Replace ("\r", "");
- SetDlgItemText(IDC_EDIT2, authcode);
- // TODO: Add your control notification handler code here
-
- }
- void InputAuthDlg::OnChangeEdit1()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the CDialog::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- CString authcode;
- GetDlgItemText(IDC_EDIT1, authcode);
- authcode.TrimLeft ();
- authcode.TrimRight ();
- authcode.Replace ("\n", "");
- authcode.Replace ("\r", "");
- SetDlgItemText(IDC_EDIT1, authcode);
- // TODO: Add your control notification handler code here
-
- }
|