newclientDlg.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // newclientDlg.h : header file
  2. //
  3. #if !defined(AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_)
  4. #define AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "BtnST.h"
  9. #include "Led.h"
  10. #include "ColorButton.h"
  11. #include "afxwin.h"
  12. #include "XPButton.h"
  13. //#include "psapi.h"
  14. //#include "tlhelp32.h"
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CNewclientDlg dialog
  17. class CNewclientDlg : public CDialog
  18. {
  19. // Construction
  20. public:
  21. CNewclientDlg(CWnd* pParent = NULL); // standard constructor
  22. char m_cHardDriver[26];
  23. int m_iHardDriverNum;
  24. CLed* m_pCapLed[16];
  25. CLed* m_pAlarmLed[16];
  26. WORD WINDOWNUM;
  27. CColorButton m_mybuttonup;
  28. CColorButton m_mybuttondown;
  29. CColorButton m_mybuttonleft;
  30. CColorButton m_mybuttonright;
  31. CColorButton m_mybuttontjleft;
  32. CColorButton m_mybuttontjright;
  33. CColorButton m_mybuttonjjleft;
  34. CColorButton m_mybuttonjjright;
  35. CColorButton m_mybuttongqleft;
  36. CColorButton m_mybuttongqright;
  37. long channelcount;//½âÂ뿨оƬÊý
  38. char m_cCurrentRecordDriver;
  39. UINT autorecordtimer;
  40. UINT checkservertimer;
  41. UINT cycletimer;
  42. UINT freespacetimer;
  43. UINT fileintervaltimer;
  44. WORD m_iAlarmNumber;
  45. BOOL m_bChangePage;
  46. WINDOWPLACEMENT m_OldWndPlacement;
  47. BYTE m_byException;
  48. UINT m_PTZTesttimer;
  49. void ArrayWindow(WORD iPos,WORD iNumber);
  50. void MoveCurWin(int iWindowNum,int iCurWinPos);
  51. void InitLed();
  52. void F_InitDecodeCard();
  53. void F_StopPlay();
  54. void F_EndFullScreen();
  55. void F_FullScreen();
  56. void F_ShowHide(BOOL bShow);
  57. void F_ShowVideoParams();
  58. void F_CyclePause();
  59. void F_FrontPage();
  60. void F_NextPage();
  61. void F_CyclePlay();
  62. BOOL F_MakeDir();
  63. void F_StopClientRecord(int iRecordWndIndex);
  64. void F_StartClientRecord(int iRecordWndIndex);
  65. BOOL F_JudgeDiskFull();
  66. void F_DeleteClientRecordFile();
  67. void F_ChangeRecordFileName(int iRecordWndIndex);
  68. LRESULT OnMyCommand(WPARAM wParam, LPARAM lParam);
  69. // Dialog Data
  70. //{{AFX_DATA(CNewclientDlg)
  71. enum { IDD = IDD_NEWCLIENT_DIALOG };
  72. CComboBox m_NetDelayCtrl;
  73. CLed m_AlarmLed9;
  74. CLed m_AlarmLed8;
  75. CLed m_AlarmLed7;
  76. CLed m_AlarmLed6;
  77. CLed m_AlarmLed5;
  78. CLed m_AlarmLed4;
  79. CLed m_AlarmLed3;
  80. CLed m_AlarmLed2;
  81. CLed m_AlarmLed16;
  82. CLed m_AlarmLed15;
  83. CLed m_AlarmLed14;
  84. CLed m_AlarmLed13;
  85. CLed m_AlarmLed12;
  86. CLed m_AlarmLed11;
  87. CLed m_AlarmLed10;
  88. CLed m_AlarmLed1;
  89. CLed m_CapLed9;
  90. CLed m_CapLed8;
  91. CLed m_CapLed7;
  92. CLed m_CapLed6;
  93. CLed m_CapLed5;
  94. CLed m_CapLed4;
  95. CLed m_CapLed3;
  96. CLed m_CapLed2;
  97. CLed m_CapLed16;
  98. CLed m_CapLed15;
  99. CLed m_CapLed14;
  100. CLed m_CapLed13;
  101. CLed m_CapLed12;
  102. CLed m_CapLed11;
  103. CLed m_CapLed10;
  104. CLed m_CapLed1;
  105. CComboBox m_windownum;
  106. CSliderCtrl m_yl;
  107. CSliderCtrl m_sd;
  108. CSliderCtrl m_ld;
  109. CSliderCtrl m_dbd;
  110. CSliderCtrl m_bhd;
  111. int m_yzd;
  112. //}}AFX_DATA
  113. // ClassWizard generated virtual function overrides
  114. //{{AFX_VIRTUAL(CNewclientDlg)
  115. protected:
  116. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  117. //}}AFX_VIRTUAL
  118. // Implementation
  119. protected:
  120. HICON m_hIcon;
  121. // Generated message map functions
  122. //{{AFX_MSG(CNewclientDlg)
  123. virtual BOOL OnInitDialog();
  124. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  125. afx_msg void OnPaint();
  126. afx_msg HCURSOR OnQueryDragIcon();
  127. afx_msg void OnExit();
  128. afx_msg void OnAudioexchange();
  129. afx_msg void OnSystemcfg();
  130. afx_msg void OnVideonetplay();
  131. afx_msg void OnGetpicture();
  132. afx_msg void OnRecord();
  133. afx_msg void OnEventlist();
  134. afx_msg void OnButtonalarmset();
  135. afx_msg void OnVideofileplay();
  136. afx_msg void OnTimer(UINT nIDEvent);
  137. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  138. afx_msg void OnButtonpoll();
  139. afx_msg void OnButtonyzw();
  140. afx_msg void OnSelchangeCombowndnum();
  141. virtual void OnCancel();
  142. afx_msg void OnSelchangeCombonetdelay();
  143. afx_msg void OnButton1();
  144. afx_msg void OnMove(int x, int y);
  145. afx_msg void OnButton2();
  146. afx_msg void OnCruise();
  147. //}}AFX_MSG
  148. DECLARE_MESSAGE_MAP()
  149. public:
  150. afx_msg void OnBnClickedButtonup();
  151. afx_msg void OnBnClickedButtondown();
  152. void Resoure();
  153. void SetAlarm();
  154. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  155. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  156. CButtonST m_btn_Preview;
  157. CButtonST m_btn_GetPic;
  158. CButtonST m_btn_SetConfig;
  159. CButtonST m_btn_Playback;
  160. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  161. void ShowGrid();
  162. //CColorButton m_Btn_Up;
  163. //CColorButton m_Btn_Down;
  164. //CColorButton m_Btn_Left;
  165. //CColorButton m_Btn_Right;
  166. //CColorButton m_Btn_TJLeft;
  167. //CColorButton m_Btn_TJRight;
  168. //CColorButton m_Btn_JJLeft;
  169. //CColorButton m_Btn_JJRight;
  170. //CColorButton m_Btn_GQLeft;
  171. //CColorButton m_Btn_GQRight;
  172. CXPButton m_Btn_XZW;
  173. void SetPos() ;
  174. };
  175. //{{AFX_INSERT_LOCATION}}
  176. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  177. #endif // !defined(AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_)