142 lines
4.0 KiB
C
Raw Permalink Normal View History

// RealPlayDlg.h : header file
//
#if !defined(AFX_REALPLAYDLG_H__4C5D1B67_AC1D_499C_A88A_C0B663F739D0__INCLUDED_)
#define AFX_REALPLAYDLG_H__4C5D1B67_AC1D_499C_A88A_C0B663F739D0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GeneralDef.h"
#include "PTZButton.h"
/////////////////////////////////////////////////////////////////////////////
// CRealPlayDlg dialog
class CRealPlayDlg : public CDialog
{
// Construction
public:
CRealPlayDlg(CWnd* pParent = NULL); // standard constructor
public:
BOOL m_bTrackRun;
BOOL m_bIsOnCruise;
void InitDecoderReferCtrl();
void GetDecoderCfg();
void StopRecord();
void StartRecord();
int GetPTZSpeed();
LONG GetPlayHandle();
int GetCurChanIndex();
void DbPlayChannel(int ChanIndex);
void CreateDeviceTree();
void StartPlay(int iChanIndex);
void StopPlay();
BOOL DoLogin();
void DoGetDeviceResoureCfg();
BOOL m_bIsLogin;
// LONG m_lLoginID;
BOOL m_bIsPlaying;
BOOL m_bIsRecording;
HTREEITEM m_hDevItem;
LOCAL_DEVICE_INFO m_struDeviceInfo;
int m_iCurChanIndex; //<2F><>ǰͨ<C7B0><CDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
LONG m_lPlayHandle;
//<2F><><EFBFBD>а<EFBFBD>ť<EFBFBD><C5A5>˳<EFBFBD><CBB3>һ<EFBFBD><D2BB>Ҫ<EFBFBD><D2AA>CPTZButton<6F>еĴ<D0B5><C4B4><EFBFBD>һ<EFBFBD><D2BB>
CPTZButton m_btnPtzUp;
CPTZButton m_btnPtzDown;
CPTZButton m_btnPtzLeft;
CPTZButton m_btnPtzRight;
CPTZButton m_btnZoomIn;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>Ŵ<EFBFBD>
CPTZButton m_btnZoomOut;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ,<2C><>С
CPTZButton m_btnFocusNear;//<2F>۽<EFBFBD><DBBD><EFBFBD><EFBFBD><EFBFBD>,<2C>Ŵ<EFBFBD>
CPTZButton m_btnFocusFar;//<2F>۽<EFBFBD><DBBD><EFBFBD>Զ,<2C><>С
CPTZButton m_btnIrisOpen;//<2F><>Ȧ<EFBFBD>Ŵ<EFBFBD>
CPTZButton m_btnIrisClose;//<2F><>Ȧ<EFBFBD><C8A6>С
CPTZButton m_btnPtzUpleft; //<2F><><EFBFBD><EFBFBD>
CPTZButton m_btnPtzUpright; //<2F><><EFBFBD><EFBFBD>
CPTZButton m_btnPtzDownleft; //<2F><><EFBFBD><EFBFBD>
CPTZButton m_btnPtzDownright; //<2F><><EFBFBD><EFBFBD>
// CPTZButton m_btnPtzAuto; //<2F>Զ<EFBFBD>
// CPTZButton m_btnLightPwron; //<2F>ƹ<EFBFBD>
// CPTZButton m_btnWiperPwron; //<2F><>ˢ
// CPTZButton m_btnFanPwron; //<2F><><EFBFBD><EFBFBD>
// CPTZButton m_btnHeaterPwron; //<2F><><EFBFBD><EFBFBD>
// CPTZButton m_btnAuxPwron; //<2F><><EFBFBD><EFBFBD>
BOOL m_bAutoOn; //<2F>Զ<EFBFBD><D4B6><EFBFBD>
BOOL m_bLightOn; //<2F>ƹ⿪
BOOL m_bWiperOn; //<2F><>ˢ<EFBFBD><CBA2>
BOOL m_bFanOn; //<2F><><EFBFBD>ȿ<EFBFBD>
BOOL m_bHeaterOn; //<2F><><EFBFBD>ȿ<EFBFBD>
BOOL m_bAuxOn1; //<2F><><EFBFBD><EFBFBD><EFBFBD>豸1<E8B1B8><31>
BOOL m_bAuxOn2; //<2F><><EFBFBD><EFBFBD><EFBFBD>豸2<E8B1B8><32>
// Dialog Data
//{{AFX_DATA(CRealPlayDlg)
enum { IDD = IDD_REALPLAY_DIALOG };
CComboBox m_coJpgQuality;
CComboBox m_coJpgSize;
CComboBox m_coPicType;
CComboBox m_comboSeq;
CComboBox m_comboPreset;
CComboBox m_comboPTZSpeed;
CTreeCtrl m_ctrlTreeChan;
CIPAddressCtrl m_ctrlDevIp;
UINT m_nDevPort;
CString m_csUser;
CString m_csPWD;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRealPlayDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CRealPlayDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonLogin();
afx_msg void OnDblclkTreeChan(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangedTreeChan(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButtonRecord();
afx_msg void OnButtonCapture();
afx_msg void OnButtonPlay();
afx_msg void OnSelchangeComboPreset();
afx_msg void OnButtonPresetGoto();
afx_msg void OnButtonPresetSet();
afx_msg void OnButtonPresetDel();
afx_msg void OnButtonSeqGoto();
afx_msg void OnButtonSeqSet();
afx_msg void OnButtonTrackRun();
afx_msg void OnButtonTrackStart();
afx_msg void OnButtonTrackStop();
afx_msg void OnBtnPtzAuto();
afx_msg void OnBtnAuxPwron();
afx_msg void OnBtnFanPwron();
afx_msg void OnBtnHeaterPwron();
afx_msg void OnBtnLightPwron();
afx_msg void OnBtnWiperPwron();
afx_msg void OnBtnAuxPwron2();
afx_msg void OnSelchangeComboPicType();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REALPLAYDLG_H__4C5D1B67_AC1D_499C_A88A_C0B663F739D0__INCLUDED_)