📄 playview.h
字号:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CMyEdit window
class CMyEdit : public CEdit
{
DECLARE_DYNAMIC(CMyEdit)
// Construction
public:
CMyEdit();
// Attributes
public:
COLORREF m_clrFont ; // foreground color
COLORREF m_clrBack ; //background color
CBrush m_brush ; //background brush
CFont m_font; //显示字体大小
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyEdit)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyEdit();
// Generated message map functions
protected:
//{{AFX_MSG(CMyEdit)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
// playView.h : interface of the CPlayView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYVIEW_H__8F79C409_2FF2_11D4_883D_0000210A0111__INCLUDED_)
#define AFX_PLAYVIEW_H__8F79C409_2FF2_11D4_883D_0000210A0111__INCLUDED_
#include "MainFrm.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "playDoc.h"
#include "VideoPlay.h"
#include "AV8Buffer.h"
class CVideoPlay;
class CAV8Buffer;
class CPlayView : public CView
{
protected: // create from serialization only
CPlayView();
DECLARE_DYNCREATE(CPlayView)
// Attributes
public:
CPlayDoc* GetDocument();
// Operations
public:
BYTE m_bStream;
HDRVR m_hVFDrv;
int Pos;
CTimeSpan Ts;
CProgressCtrl m_prog;
RECT grc;
CString Fname;
CString FreeDiskSpace;
void InitEncodeSystemVxD(void);
BOOL m_TPlayFile; //播放文件定时器标志
BOOL m_TCapture; //采集定时器标志
int m_time; //采集时间
BOOL m_TimeCheck; //指定采集时间标志
BOOL m_SizeCheck; //指定采集大小标志
int m_TimeIndex; //采集时间标志
CFont m_font;
BOOL m_RealSend; //是否在实时发送数据
CMyEdit m_edit;
CStatic m_static;
CVideoPlay* pVideoPlay;
public:
void ClearDriver();
int InitDriver();
void DiskSpace(TCHAR sDriver);
void InitEncodeVideoVxD();
int SendCounter;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPlayView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
protected:
virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPlayView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
public:
void InitEncodeAudioVxD();
//{{AFX_MSG(CPlayView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnPopFileSend();
afx_msg void OnPopRealSend();
afx_msg void OnPopSendStop();
afx_msg void OnCaptureSave();
afx_msg void OnBeginCapture();
afx_msg void OnStopCapture();
afx_msg void OnOpenPlayfile();
afx_msg void OnPlayfile();
afx_msg void OnFileStop();
afx_msg void OnRealplay();
afx_msg void OnRealStop();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnPausePlay();
afx_msg void OnResumePlay();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnPauseCapture();
afx_msg void OnResumeCapture();
//}}AFX_MSG
afx_msg LRESULT OnOutbarNotify(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnPlayOver(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT OnReadyRealSend(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT OnPrepareClose(WPARAM wParam,LPARAM lParam);
afx_msg LRESULT OnCaptureStop(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
};
#ifndef _DEBUG // debug version in playView.cpp
inline CPlayDoc* CPlayView::GetDocument()
{ return (CPlayDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLAYVIEW_H__8F79C409_2FF2_11D4_883D_0000210A0111__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -