Old fashion design for PC-104
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 13/04/2001
// PROJECT:
// SUBSYSTEM:
// FILE: TroubleDlg.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of TroubleDlg.cpp
//----------------------------------------------------------------------------
// TroubleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "chicago.h"
#include "TroubleDlg.h"
#include "Version.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;#endif
/////////////////////////////////////////////////////////////////////////////
// CTroubleDlg dialog
CTroubleDlg::CTroubleDlg(CWnd* pParent /*=NULL*/) : CDialog(CTroubleDlg::IDD, pParent){ //{{AFX_DATA_INIT(CTroubleDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CTroubleDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CTroubleDlg)
DDX_Control(pDX, IDC_STATIC_TEXT, m_Text); //}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTroubleDlg, CDialog) //{{AFX_MSG_MAP(CTroubleDlg)
ON_WM_TIMER() //}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTroubleDlg message handlers
void CTroubleDlg::SetTroubleText(LPSTR pText){ m_strText = pText;}
BOOL CTroubleDlg::OnInitDialog() { CDialog::OnInitDialog(); m_Text.SetWindowText( m_strText ); return TRUE; // return TRUE unless you set the focus to a control
}
void CTroubleDlg::OnTimer(UINT nIDEvent) { if( ::GetTickCount() >= m_dwStartTime ) EndDialog( IDCANCEL ); else CDialog::OnTimer(nIDEvent);}
int CTroubleDlg::DoModal() { m_dwStartTime = ::GetTickCount() + 10000UL; return CDialog::DoModal();}
|