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.

79 lines
1.9 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: RepairDlg.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of RepairDlg.cpp
  13. //----------------------------------------------------------------------------
  14. // RepairDlg.cpp : implementation file
  15. //
  16. #include "stdafx.h"
  17. #include "chicago.h"
  18. #include "RepairDlg.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CRepairDlg dialog
  26. CRepairDlg::CRepairDlg(CWnd* pParent /*=NULL*/)
  27. : CDialog(CRepairDlg::IDD, pParent)
  28. {
  29. //{{AFX_DATA_INIT(CRepairDlg)
  30. // NOTE: the ClassWizard will add member initialization here
  31. //}}AFX_DATA_INIT
  32. }
  33. void CRepairDlg::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CDialog::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CRepairDlg)
  37. DDX_Control(pDX, IDC_PROGRESS, m_Progress);
  38. //}}AFX_DATA_MAP
  39. }
  40. BEGIN_MESSAGE_MAP(CRepairDlg, CDialog)
  41. //{{AFX_MSG_MAP(CRepairDlg)
  42. ON_WM_TIMER()
  43. //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CRepairDlg message handlers
  47. BOOL CRepairDlg::OnInitDialog()
  48. {
  49. CDialog::OnInitDialog();
  50. m_Progress.SetRange( 0, 100 );
  51. m_Progress.SetPos( 0 );
  52. SetTimer( 0, 100, NULL );
  53. return TRUE; // return TRUE unless you set the focus to a control
  54. // EXCEPTION: OCX Property Pages should return FALSE
  55. }
  56. void CRepairDlg::OnTimer(UINT nIDEvent)
  57. {
  58. if( m_Progress.GetPos() == 100 )
  59. CDialog::OnOK();
  60. else
  61. m_Progress.SetPos( m_Progress.GetPos() + 1 );
  62. CDialog::OnTimer(nIDEvent);
  63. }