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.

92 lines
2.4 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: ConnectionDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ConnectionDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_)
  15. #define AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // ConnectionDlg.h : header file
  20. //
  21. #include "..\DLIB\ObjectFactory.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CConnectionDlg dialog
  24. using namespace OFNS;
  25. class CConnectionDlg : public CDialog
  26. {
  27. // Construction
  28. public:
  29. int DoModal( COFDevice* pSrc, COFDevice *pDest );
  30. CConnectionDlg(CWnd* pParent = NULL); // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(CConnectionDlg)
  33. enum { IDD = IDD_CONNECTION_DLG };
  34. CListBox m_ListLink;
  35. CButton m_ButtonDelAll;
  36. CButton m_ButtonDel;
  37. CButton m_ButtonAddAll;
  38. CButton m_ButtonAdd;
  39. CButton m_Ok;
  40. CListBox m_Src;
  41. CListBox m_Dest;
  42. CStatic m_sDest;
  43. CStatic m_sSrc;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CConnectionDlg)
  48. public:
  49. virtual BOOL DestroyWindow();
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CConnectionDlg)
  57. virtual BOOL OnInitDialog();
  58. virtual void OnOK();
  59. afx_msg void OnButtonAdd();
  60. afx_msg void OnButtonAddAll();
  61. afx_msg void OnButtonDel();
  62. afx_msg void OnButtonDelAll();
  63. afx_msg void OnSelchangeList();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. private:
  67. void FillControls();
  68. COFDevice *m_pSrc;
  69. COFDevice *m_pDest;
  70. private:
  71. typedef struct tagDATAPTR
  72. {
  73. COFPin *dataS;
  74. COFPin *dataD;
  75. BOOL bConnected;
  76. }DATAPTR, *PDATAPTR;
  77. CArray<DATAPTR, DATAPTR> m_LinkArray;
  78. };
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_CONNECTIONDLG_H__3698FB21_F9D6_11D4_B7C2_D46D48E22851__INCLUDED_)