HKVisionDlg.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // HKVisionDlg.h : header file
  2. //
  3. #if !defined(AFX_HKVISIONDLG_H__0FCEB53F_35E1_40A3_8F98_E993258EA09B__INCLUDED_)
  4. #define AFX_HKVISIONDLG_H__0FCEB53F_35E1_40A3_8F98_E993258EA09B__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CHKVisionDlg dialog
  10. #include "HKVision.h"
  11. #include "VideoWin.h"
  12. #include "afxwin.h"
  13. class CHKVisionDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17. int OnDataReady(UINT wpara, INT lparam);
  18. int OnUpdateCounters(UINT, INT);
  19. void LogMessage(const unsigned char *buf, void *context);
  20. void OnMyCommand(WPARAM wParam, LPARAM lParam);
  21. BOOLEAN m_bDspPreset[MAX_DSPS_SUPPORT];
  22. CBrush m_brush1;
  23. CBrush m_brush2;
  24. BOOLEAN m_bLog;
  25. CVideoWin m_VideoWin;
  26. CHKVisionDlg(CWnd* pParent = NULL); // standard constructor
  27. void StartVideoPreview();
  28. void StopVideoPreview();
  29. void Close();
  30. // Dialog Data
  31. //{{AFX_DATA(CHKVisionDlg)
  32. enum { IDD = IDD_HKVISION_DIALOG };
  33. CEdit m_Logwin;
  34. int m_brightness;
  35. int m_contrast;
  36. int m_hue;
  37. int m_saturation;
  38. UINT m_iframes;
  39. //UINT m_pbframes;
  40. UINT m_lostframes;
  41. //UINT m_audioframes;
  42. CString m_ip;
  43. BOOL m_sframe;
  44. //}}AFX_DATA
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CHKVisionDlg)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. HICON m_hIcon;
  53. // Generated message map functions
  54. //{{AFX_MSG(CHKVisionDlg)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  57. afx_msg void OnPaint();
  58. afx_msg HCURSOR OnQueryDragIcon();
  59. afx_msg void OnStart();
  60. afx_msg void OnClose();
  61. afx_msg void OnStop();
  62. afx_msg void OnPreview();
  63. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  64. afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  65. afx_msg void OnMove(int x, int y);
  66. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  67. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  68. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  69. afx_msg void OnSettings();
  70. afx_msg void OnTimer(UINT nIDEvent);
  71. afx_msg void OnCapimage();
  72. afx_msg void OnDestroy();
  73. afx_msg void OnButton5();
  74. afx_msg void OnButton6();
  75. afx_msg void OnButton7();
  76. afx_msg void OnButton8();
  77. afx_msg void OnCapturesframe();
  78. afx_msg void OnButton9();
  79. afx_msg void OnSubstart();
  80. afx_msg void OnStopsubcap();
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. public:
  84. bool m_bHaveSignal[64];//ÓÐÐÅÌ–
  85. bool m_bCapture[64];//ÔÚÏÂÝdÒ•îl
  86. bool StartCaptureVideo( int iChannel );
  87. bool StopCaptureVideo( int iChannel );
  88. void GetAllVideoFile();
  89. DWORD m_dwVideoStartTime[64];
  90. DWORD m_dwNoMotionStartTime[64];
  91. void SetCtrlPos( CRect rect );
  92. void StopDrawFun(DWORD nport);
  93. protected:
  94. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  95. };
  96. //{{AFX_INSERT_LOCATION}}
  97. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  98. #endif // !defined(AFX_HKVISIONDLG_H__0FCEB53F_35E1_40A3_8F98_E993258EA09B__INCLUDED_)