123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #pragma once
- #include "afxcmn.h"
- #include "XPButton.h"
- #include "ListCtrlCl.h"
- // CDlg_Moniter 对话框
- class CDlg_Moniter : public CDialog
- {
- DECLARE_DYNAMIC(CDlg_Moniter)
- public:
- CDlg_Moniter(CWnd* pParent = NULL); // 标准构造函数
- virtual ~CDlg_Moniter();
- // 对话框数据
- enum { IDD = IDD_DLG_MONITER };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- DECLARE_MESSAGE_MAP()
- public:
- CImageList m_imageList;
- CListCtrlCl m_List_Info;
- virtual BOOL OnInitDialog();
- void SetPos( CRect rect );
- afx_msg void OnBnClickedButton1();
- CListCtrl m_List_Door;
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- int InitList(void);
- void InsertItemToList( CString sTime,CString sCardID,CString sUserInfo,CString sDoorName,CString sInfo );
- void InsertItemToList( int iType,bool bResult,CString sControlName="" );
- void AddDoorToList( CString sControlName,int nStatus );//0 关 1 开 2无连接
- void AddDoorToList( CString sControlName,int iDoorIndex,int nStatus );//0 关 1 开 2无连接
- void DelDoorFromList( CString sControlName );
- afx_msg void OnDoorOpendoor();
- afx_msg void OnDoorJusttime();
- afx_msg void OnDoorDooropendelaytime();
- afx_msg void OnNMRclickListDoor(NMHDR *pNMHDR, LRESULT *pResult);
- CString m_sCurrentDoorName;
- afx_msg void OnReconnect();
- afx_msg void OnDoorClosedoor();
- afx_msg void OnDoorReconnect();
- CRITICAL_SECTION m_InSertRecordList;
- CRITICAL_SECTION m_InSertDoorList;
- afx_msg void OnDoorSort();
- afx_msg void OnDoorSort2();
- afx_msg void OnDoorSort1();
- CString m_sTime[100],m_sCard[100];
- int m_nNowIndex;
- bool IsExist( CString sTime,CString sCardID );
- afx_msg void OnNMDblclkListInfo(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnMenuClearlist();
- afx_msg void OnNMRclickListInfo(NMHDR *pNMHDR, LRESULT *pResult);
- };
|