⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_grapview.h

📁 demo 演示程序 driver 图像采集卡驱动程序 sdk 用户二次开发库 source 演示程序的原代码 doc 720摄像机资料
💻 H
字号:
// test_grapView.h : interface of the CTest_grapView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEST_GRAPVIEW_H__7AAE67ED_6D80_11D6_B96D_0000B4BF2061__INCLUDED_)
#define AFX_TEST_GRAPVIEW_H__7AAE67ED_6D80_11D6_B96D_0000B4BF2061__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CTest_grapView : public CScrollView
{
protected: // create from serialization only
	CTest_grapView();
	DECLARE_DYNCREATE(CTest_grapView)

// Attributes
public:
	CTest_grapDoc* GetDocument();
	void OnShowInfo();
    BOOL m_bSubBK;
	BOOL m_bCaiji;
	BOOL m_bHandCaiji;

	BOOL m_bLianXu;
	int  m_nCaijiCount;
	int  m_nInval;
	int  m_nCurPos;

	int m_nFrames;
	int m_nFps;
	int m_nSecond;
	int m_nFreq;
	int m_Width;
	int m_Height;
	float m_fZoom;
	
	HGLOBAL InitDib(int xw,int yh,int nBits);
	BOOL DoShowIMG(HDC hDC,HGLOBAL dib);
	HGLOBAL	m_hHiGrayDib;  
	HGLOBAL	m_hDib;
	HGLOBAL	m_hDibGroup[10];
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTest_grapView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTest_grapView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTest_grapView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnGrap();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnControl();
	afx_msg void OnSubbkimg();
	afx_msg void OnGetbkimg();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnUpdateInfo1(CCmdUI* pCmdUI);
	afx_msg void OnZoom();
	afx_msg void OnZoomin();
	afx_msg void OnZoomout();
	afx_msg void OnUpdateSubbkimg(CCmdUI* pCmdUI);
	afx_msg void OnFileOpen();
	afx_msg void OnFileSave();
	afx_msg void OnCaijisetup();
	afx_msg void OnHandcaiji();
	afx_msg void OnUpdateCaijisetup(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGrap(CCmdUI* pCmdUI);
	//}}AFX_MSG
	afx_msg void OnCaptureBegin(WPARAM wParam,LPARAM lParam);
	afx_msg void OnCaptureRun(WPARAM wParam,LPARAM lParam);
	afx_msg void OnCaptureEnd(WPARAM wParam,LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in test_grapView.cpp
inline CTest_grapDoc* CTest_grapView::GetDocument()
   { return (CTest_grapDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_TEST_GRAPVIEW_H__7AAE67ED_6D80_11D6_B96D_0000B4BF2061__INCLUDED_)

⌨️ 快捷键说明

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