video.h

来自「vc ad」· C头文件 代码 · 共 69 行

H
69
字号
#if !defined(AFX_VIDEO_H__CF39CDE4_501B_11D5_AC5B_5254AB167712__INCLUDED_)
#define AFX_VIDEO_H__CF39CDE4_501B_11D5_AC5B_5254AB167712__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Video.h : header file
//
#include "card.h"
//#include "Preview.h"
class CPreview;
/////////////////////////////////////////////////////////////////////////////
// CVideo dialog

class CVideo : public CDialog
{
// Construction
public:
	CVideo(class CWnd* pParent, CCard *pCard);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CVideo)
	enum { IDD = IDD_VIDEO };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVideo)
	public:
	virtual BOOL Create();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
private:
	int nXBorder, nYBorder, nYHeader;
	int nXScreen, nYScreen;
	CCard *m_pCard;
	void DoOverlay();
	int m_Channel;
	int m_OverlayMode;
	CPreview* m_pParent;
public:
	void SetChannel(int nChannel);
	void SetOverlayMode(int nMode);
protected:

	// Generated message map functions
	//{{AFX_MSG(CVideo)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnPaint();
	afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
	afx_msg void OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VIDEO_H__CF39CDE4_501B_11D5_AC5B_5254AB167712__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?