123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- // newclientDlg.h : header file
- //
- #if !defined(AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_)
- #define AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "BtnST.h"
- #include "Led.h"
- #include "ColorButton.h"
- #include "afxwin.h"
- #include "XPButton.h"
- //#include "psapi.h"
- //#include "tlhelp32.h"
- /////////////////////////////////////////////////////////////////////////////
- // CNewclientDlg dialog
- class CNewclientDlg : public CDialog
- {
- // Construction
- public:
- CNewclientDlg(CWnd* pParent = NULL); // standard constructor
- char m_cHardDriver[26];
- int m_iHardDriverNum;
-
- CLed* m_pCapLed[16];
- CLed* m_pAlarmLed[16];
- WORD WINDOWNUM;
- CColorButton m_mybuttonup;
- CColorButton m_mybuttondown;
- CColorButton m_mybuttonleft;
- CColorButton m_mybuttonright;
-
- CColorButton m_mybuttontjleft;
- CColorButton m_mybuttontjright;
- CColorButton m_mybuttonjjleft;
- CColorButton m_mybuttonjjright;
- CColorButton m_mybuttongqleft;
- CColorButton m_mybuttongqright;
- long channelcount;//½âÂ뿨оƬÊý
- char m_cCurrentRecordDriver;
- UINT autorecordtimer;
- UINT checkservertimer;
- UINT cycletimer;
- UINT freespacetimer;
- UINT fileintervaltimer;
- WORD m_iAlarmNumber;
- BOOL m_bChangePage;
- WINDOWPLACEMENT m_OldWndPlacement;
- BYTE m_byException;
- UINT m_PTZTesttimer;
- void ArrayWindow(WORD iPos,WORD iNumber);
- void MoveCurWin(int iWindowNum,int iCurWinPos);
- void InitLed();
- void F_InitDecodeCard();
- void F_StopPlay();
- void F_EndFullScreen();
- void F_FullScreen();
- void F_ShowHide(BOOL bShow);
- void F_ShowVideoParams();
- void F_CyclePause();
- void F_FrontPage();
- void F_NextPage();
- void F_CyclePlay();
- BOOL F_MakeDir();
- void F_StopClientRecord(int iRecordWndIndex);
- void F_StartClientRecord(int iRecordWndIndex);
- BOOL F_JudgeDiskFull();
- void F_DeleteClientRecordFile();
- void F_ChangeRecordFileName(int iRecordWndIndex);
- LRESULT OnMyCommand(WPARAM wParam, LPARAM lParam);
- // Dialog Data
- //{{AFX_DATA(CNewclientDlg)
- enum { IDD = IDD_NEWCLIENT_DIALOG };
- CComboBox m_NetDelayCtrl;
- CLed m_AlarmLed9;
- CLed m_AlarmLed8;
- CLed m_AlarmLed7;
- CLed m_AlarmLed6;
- CLed m_AlarmLed5;
- CLed m_AlarmLed4;
- CLed m_AlarmLed3;
- CLed m_AlarmLed2;
- CLed m_AlarmLed16;
- CLed m_AlarmLed15;
- CLed m_AlarmLed14;
- CLed m_AlarmLed13;
- CLed m_AlarmLed12;
- CLed m_AlarmLed11;
- CLed m_AlarmLed10;
- CLed m_AlarmLed1;
- CLed m_CapLed9;
- CLed m_CapLed8;
- CLed m_CapLed7;
- CLed m_CapLed6;
- CLed m_CapLed5;
- CLed m_CapLed4;
- CLed m_CapLed3;
- CLed m_CapLed2;
- CLed m_CapLed16;
- CLed m_CapLed15;
- CLed m_CapLed14;
- CLed m_CapLed13;
- CLed m_CapLed12;
- CLed m_CapLed11;
- CLed m_CapLed10;
- CLed m_CapLed1;
- CComboBox m_windownum;
- CSliderCtrl m_yl;
- CSliderCtrl m_sd;
- CSliderCtrl m_ld;
- CSliderCtrl m_dbd;
- CSliderCtrl m_bhd;
- int m_yzd;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CNewclientDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CNewclientDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnExit();
- afx_msg void OnAudioexchange();
- afx_msg void OnSystemcfg();
- afx_msg void OnVideonetplay();
- afx_msg void OnGetpicture();
- afx_msg void OnRecord();
- afx_msg void OnEventlist();
- afx_msg void OnButtonalarmset();
- afx_msg void OnVideofileplay();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnButtonpoll();
- afx_msg void OnButtonyzw();
- afx_msg void OnSelchangeCombowndnum();
- virtual void OnCancel();
- afx_msg void OnSelchangeCombonetdelay();
- afx_msg void OnButton1();
- afx_msg void OnMove(int x, int y);
- afx_msg void OnButton2();
- afx_msg void OnCruise();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedButtonup();
- afx_msg void OnBnClickedButtondown();
- void Resoure();
- void SetAlarm();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- CButtonST m_btn_Preview;
- CButtonST m_btn_GetPic;
- CButtonST m_btn_SetConfig;
- CButtonST m_btn_Playback;
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- void ShowGrid();
- //CColorButton m_Btn_Up;
- //CColorButton m_Btn_Down;
- //CColorButton m_Btn_Left;
- //CColorButton m_Btn_Right;
- //CColorButton m_Btn_TJLeft;
- //CColorButton m_Btn_TJRight;
- //CColorButton m_Btn_JJLeft;
- //CColorButton m_Btn_JJRight;
- //CColorButton m_Btn_GQLeft;
- //CColorButton m_Btn_GQRight;
- CXPButton m_Btn_XZW;
- void SetPos() ;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_NEWCLIENTDLG_H__C48BF0F7_A61E_4917_B211_C8928EB41C60__INCLUDED_)
|