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.

83 lines
2.1 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: PropFixedCameraDlg.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of PropFixedCameraDlg.cpp
  13. //----------------------------------------------------------------------------
  14. // PropFixedCameraDlg.cpp : implementation file
  15. //
  16. #include "stdafx.h"
  17. #include "setuplgs.h"
  18. #include "PropFixedCameraDlg.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CPropFixedCameraDlg dialog
  26. CPropFixedCameraDlg::CPropFixedCameraDlg(CWnd* pParent /*=NULL*/)
  27. : CDialog(CPropFixedCameraDlg::IDD, pParent)
  28. {
  29. //{{AFX_DATA_INIT(CPropFixedCameraDlg)
  30. // NOTE: the ClassWizard will add member initialization here
  31. //}}AFX_DATA_INIT
  32. }
  33. void CPropFixedCameraDlg::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CDialog::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CPropFixedCameraDlg)
  37. DDX_Control(pDX, IDC_EDIT_NAME, m_EditName);
  38. //}}AFX_DATA_MAP
  39. }
  40. BEGIN_MESSAGE_MAP(CPropFixedCameraDlg, CDialog)
  41. //{{AFX_MSG_MAP(CPropFixedCameraDlg)
  42. //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CPropFixedCameraDlg message handlers
  46. void CPropFixedCameraDlg::OnOK()
  47. {
  48. CString name;
  49. m_EditName.GetWindowText( name );
  50. m_pDevice->SetName( name );
  51. CDialog::OnOK();
  52. }
  53. BOOL CPropFixedCameraDlg::OnInitDialog()
  54. {
  55. CDialog::OnInitDialog();
  56. m_EditName.SetWindowText( m_pDevice->GetName() );
  57. return TRUE; // return TRUE unless you set the focus to a control
  58. // EXCEPTION: OCX Property Pages should return FALSE
  59. }
  60. int CPropFixedCameraDlg::DoModal(COFDevice *pDevice)
  61. {
  62. ASSERT( pDevice );
  63. m_pDevice = pDevice;
  64. return CDialog::DoModal();
  65. }