showstreamdlg.h

来自「基于SDK的图像采集程序」· C头文件 代码 · 共 63 行

H
63
字号
#if !defined(AFX_SHOWSTREAMDLG_H__CF7BF510_2B3C_4AE8_8778_B0942D39A3A4__INCLUDED_)
#define AFX_SHOWSTREAMDLG_H__CF7BF510_2B3C_4AE8_8778_B0942D39A3A4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ShowStreamDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CShowStreamDlg dialog

class CShowStreamDlg : public CDialog//,CChildFrame
{
// Construction
public:

	BYTE *pLastFrame;//pLastFrame[320*240*3]
	BOOL Prsed;
	WORD   counts;

    void DisplayGrayImage(const BITMAPINFO *pInfo,const BYTE *pBits);
	
	CShowStreamDlg(CWnd* pParent = NULL);   // standard constructor

	void ShowStream(const BITMAPINFO * pInfo, const BYTE * pBits);

	void SetShowWay(int iCardID, bool bIs4WayCard, int iWay=0);
// Dialog Data
	//{{AFX_DATA(CShowStreamDlg)
	enum { IDD = IDD_SHOWSTREAM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShowStreamDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnOK();
	virtual void OnCancel();
	//}}AFX_VIRTUAL

// Implementation
protected:

	bool m_bIs4WayCard;	//是否是四路实时卡
	int  m_iShowWay;	//如果是四路实时卡,显示第几路图像

	// Generated message map functions
	//{{AFX_MSG(CShowStreamDlg)
	virtual BOOL OnInitDialog();
	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_SHOWSTREAMDLG_H__CF7BF510_2B3C_4AE8_8778_B0942D39A3A4__INCLUDED_)

⌨️ 快捷键说明

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