Dlg_Moniter.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #pragma once
  2. #include "afxcmn.h"
  3. #include "XPButton.h"
  4. #include "ListCtrlCl.h"
  5. // CDlg_Moniter 对话框
  6. class CDlg_Moniter : public CDialog
  7. {
  8. DECLARE_DYNAMIC(CDlg_Moniter)
  9. public:
  10. CDlg_Moniter(CWnd* pParent = NULL); // 标准构造函数
  11. virtual ~CDlg_Moniter();
  12. // 对话框数据
  13. enum { IDD = IDD_DLG_MONITER };
  14. protected:
  15. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  16. DECLARE_MESSAGE_MAP()
  17. public:
  18. CImageList m_imageList;
  19. CListCtrlCl m_List_Info;
  20. virtual BOOL OnInitDialog();
  21. void SetPos( CRect rect );
  22. afx_msg void OnBnClickedButton1();
  23. CListCtrl m_List_Door;
  24. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  25. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  26. int InitList(void);
  27. void InsertItemToList( CString sTime,CString sCardID,CString sUserInfo,CString sDoorName,CString sInfo );
  28. void InsertItemToList( int iType,bool bResult,CString sControlName="" );
  29. void AddDoorToList( CString sControlName,int nStatus );//0 关 1 开 2无连接
  30. void AddDoorToList( CString sControlName,int iDoorIndex,int nStatus );//0 关 1 开 2无连接
  31. void DelDoorFromList( CString sControlName );
  32. afx_msg void OnDoorOpendoor();
  33. afx_msg void OnDoorJusttime();
  34. afx_msg void OnDoorDooropendelaytime();
  35. afx_msg void OnNMRclickListDoor(NMHDR *pNMHDR, LRESULT *pResult);
  36. CString m_sCurrentDoorName;
  37. afx_msg void OnReconnect();
  38. afx_msg void OnDoorClosedoor();
  39. afx_msg void OnDoorReconnect();
  40. CRITICAL_SECTION m_InSertRecordList;
  41. CRITICAL_SECTION m_InSertDoorList;
  42. afx_msg void OnDoorSort();
  43. afx_msg void OnDoorSort2();
  44. afx_msg void OnDoorSort1();
  45. CString m_sTime[100],m_sCard[100];
  46. int m_nNowIndex;
  47. bool IsExist( CString sTime,CString sCardID );
  48. afx_msg void OnNMDblclkListInfo(NMHDR *pNMHDR, LRESULT *pResult);
  49. afx_msg void OnMenuClearlist();
  50. afx_msg void OnNMRclickListInfo(NMHDR *pNMHDR, LRESULT *pResult);
  51. };