123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #if !defined(AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_)
- #define AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // RealEventDlg.h : header file
- //
- #include "stdafx.h"
- #include "XPButton.h"
- #include "ListCtrlCl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CRealEventDlg dialog
- class CRealEventDlg : public CDialog
- {
- // Construction
- public:
- CString GetAlarmFile(int type);
- void AddEventInfoToList(CAlarmEvent* event);
- CRealEventDlg(CWnd* pParent = NULL); // standard constructor
- ~CRealEventDlg();
- // Dialog Data
- //{{AFX_DATA(CRealEventDlg)
- enum { IDD = IDD_REALEVENT };
- //}}AFX_DATA
- CListCtrlCl m_ctrlGrid;
- //CAlarmEvent* m_pCurEvent2;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CRealEventDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CRealEventDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnConfirm();
- afx_msg void OnDeleteall();
- afx_msg void OnDeleteall2();
- afx_msg void OnClose();
- afx_msg void OnHide();
- afx_msg void OnBtnEixt();
- //afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- void PlaySoundTims( CString sWavPath,int iTimes );
- static DWORD WINAPI ThreadPlaySound( CRealEventDlg *pDlg );
- static DWORD WINAPI ThreadCreateWav( CRealEventDlg *pDlg );
- HANDLE m_hPlaysound;
- HANDLE m_hCreateWav;
- bool m_bExitThread;
- bool m_bComfig;
- public:
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- CXPButton m_Btn_Config,m_Btn_ConfigAll,m_BtnDel,m_BtnDelAll,m_BtnExit;
- CString GetWeekStr( int iDayofWeek );
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- CString m_sIoServerPath;
- bool m_bStopSound;
- void SetPos( int iWidth,int iHeight );
- bool ExistFile(CString strFileName);
- CStringArray m_saWavPath,m_saWavContent;
- bool IsCreateWavOK( CString sWavPath );
- void DeleteAllNotice();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_REALEVENTDLG_H__1C66691C_CA3B_4BCF_884F_F17F7BFE108A__INCLUDED_)
|