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

📄 scape.h

📁 基于VC开发了一个虚拟示波器
💻 H
字号:
#if !defined(AFX_SCAPE_H__EA885E4C_485D_40EC_929E_726B3DBFD4BA__INCLUDED_)
#define AFX_SCAPE_H__EA885E4C_485D_40EC_929E_726B3DBFD4BA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Scape.h : header file
//
#include <afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CScape window
struct DisPoint {
	int x;
	int y;
	int value;
};
enum ModeScape{osci,slot};
class CScape : public CStatic
{
// Construction
public:
	CScape();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScape)
	//}}AFX_VIRTUAL

// Implementation
public:
	CArray <DisPoint ,DisPoint&> m_valarry;   //存储一帧数据供显示
	void Chang(ModeScape scapetype=osci);
	void Chang(int scapetype);
	int m_x,m_y;        //坐标系中x,y 轴单位长度(unit)总数
	int m_unit;
	int m_xcount,m_ycount;
	int m_width,m_hight;
	int m_xunit,m_yunit; //坐标系中一格代表单位长度的个数
	int m_xoffset,m_yoffset;//x,y轴的偏移量
	int m_numpoint;    //记录一帧数据中的有效个数
	bool State1;
	ModeScape m_ScapeType; //选择示波器类型
    float tx;    // 标记x轴的起始点
	void DrawForm();
	
	virtual ~CScape();
	
	// Generated message map functions
protected:
	//{{AFX_MSG(CScape)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_SCAPE_H__EA885E4C_485D_40EC_929E_726B3DBFD4BA__INCLUDED_)





















⌨️ 快捷键说明

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