histwaveview.h

来自「AD 数据采集卡基本的采集界面」· C头文件 代码 · 共 66 行

H
66
字号
#if !defined(AFX_HistWaveView_H__D442B984_8439_11D1_B87A_A3845A0CA5FE__INCLUDED_)
#define AFX_HistWaveView_H__D442B984_8439_11D1_B87A_A3845A0CA5FE__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CHistWaveView view

class CHistWaveView : public CScrollView
{
protected:
	CHistWaveView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CHistWaveView)

// Attributes
public:
	void ShowWave(CDC *pDC); //绘制波形
	float middle1;
	int center;	
	int PerY;
	long Offset;  // 记录在8192点中当前偏移位置
	int Index;
	int  m_ScreenVolume;//设置屏幕显示的量程
	int  m_TriggerVolt;//触发电压
	int m_MiddleLsb;
	
	
	// Operations
public:
	UINT m_oldScroll;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHistWaveView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnInitialUpdate();     // first time after construct
	//}}AFX_VIRTUAL

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

	// Generated message map functions
	//{{AFX_MSG(CHistWaveView)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_HistWaveView_H__D442B984_8439_11D1_B87A_A3845A0CA5FE__INCLUDED_)

⌨️ 快捷键说明

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