📄 displayview.h
字号:
// displayView.h : interface of the CDisplayView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DISPLAYVIEW_H__3B69846D_CFFF_11D7_ABE9_B27AECF55211__INCLUDED_)
#define AFX_DISPLAYVIEW_H__3B69846D_CFFF_11D7_ABE9_B27AECF55211__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
UINT vdatagather(LPVOID pParam);
UINT vdatashow(LPVOID pParam);
UINT vdatagather_iso(LPVOID pParam);
UINT vdatashow_iso(LPVOID pParam);
class CDisplayView : public CScrollView
{
protected: // create from serialization only
CDisplayView();
DECLARE_DYNCREATE(CDisplayView)
// Attributes
public:
CDisplayDoc* GetDocument();
public:
HANDLE m_hsem; //信号量变量
HANDLE m_heventbuttonok; //信号量事件
HANDLE m_heventdone[6];
HANDLE m_heventkill;
long m_data;//数据指针
unsigned char m_tmp;//写入数据
int high;
public:
void CDisplayView::DrawGray2D( CDC *pDC, HANDLE hDIB,int con=0);
int gray_flag;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDisplayView)
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 ~CDisplayView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDisplayView)
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnViewDisp();
afx_msg void OnViewContinue();
afx_msg void OnStopAll();
afx_msg void OnColor();
afx_msg void OnGray();
afx_msg void OnIsoRead();
afx_msg void OnDebug();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in displayView.cpp
inline CDisplayDoc* CDisplayView::GetDocument()
{ return (CDisplayDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DISPLAYVIEW_H__3B69846D_CFFF_11D7_ABE9_B27AECF55211__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -