RealEventDlg.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #if !defined(AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_)
  2. #define AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // RealEventDlg.h : header file
  7. //
  8. #include "stdafx.h"
  9. #include "XPButton.h"
  10. #include "ListCtrlCl.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CRealEventDlg dialog
  13. class CRealEventDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CString GetAlarmFile(int type);
  18. void AddEventInfoToList(CAlarmEvent* event);
  19. CRealEventDlg(CWnd* pParent = NULL); // standard constructor
  20. ~CRealEventDlg();
  21. // Dialog Data
  22. //{{AFX_DATA(CRealEventDlg)
  23. enum { IDD = IDD_REALEVENT };
  24. //}}AFX_DATA
  25. CListCtrlCl m_ctrlGrid;
  26. //CAlarmEvent* m_pCurEvent2;
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CRealEventDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(CRealEventDlg)
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnPaint();
  39. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  40. afx_msg void OnTimer(UINT nIDEvent);
  41. afx_msg void OnConfirm();
  42. afx_msg void OnDeleteall();
  43. afx_msg void OnClose();
  44. afx_msg void OnHide();
  45. afx_msg void OnBtnEixt();
  46. //afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. void PlaySoundTims( CString sWavPath,int iTimes );
  50. static DWORD WINAPI ThreadPlaySound( CRealEventDlg *pDlg );
  51. HANDLE m_hPlaysound;
  52. bool m_bExitThread;
  53. bool m_bComfig;
  54. public:
  55. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  56. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  57. CXPButton m_Btn_Config,m_Btn_ConfigAll,m_BtnDel,m_BtnExit;
  58. CString GetWeekStr( int iDayofWeek );
  59. virtual BOOL PreTranslateMessage(MSG* pMsg);
  60. CString m_sIoServerPath;
  61. bool m_bStopSound;
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_)