// LogonDlg.cpp : implementation file // #include "stdafx.h" #include "FutureChecker.h" #include "LogonDlg.h" #include "./UtilClass/sntp.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CLogonDlg dialog CLogonDlg::CLogonDlg(CWnd* pParent /*=NULL*/) : CDialog(CLogonDlg::IDD, pParent) { //{{AFX_DATA_INIT(CLogonDlg) m_nAuthentificationID = 0; //}}AFX_DATA_INIT m_dlTime.SetDateTime( 0, 0, 0, 0, 0, 0 ); } void CLogonDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CLogonDlg) DDX_Text(pDX, IDC_AUTHENTIFICATION_EDIT, m_nAuthentificationID); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CLogonDlg, CDialog) //{{AFX_MSG_MAP(CLogonDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CLogonDlg message handlers BOOL CLogonDlg::OnInitDialog() { CDialog::OnInitDialog(); CEdit* pEditWnd = (CEdit*)GetDlgItem(IDC_AUTHENTIFICATION_EDIT); pEditWnd->SetWindowText(""); pEditWnd->SendMessage( EM_SETSEL, 0, -1 ); pEditWnd->SetFocus(); return FALSE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CLogonDlg::OnCancel() { CDialog::OnCancel(); } void CLogonDlg::OnOK() { UpdateData(); if( m_nAuthentificationID == 5525 ) { CDialog::OnOK(); return; } }