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

📄 asmdlg.h

📁 实时曲线类的改进增加功能: 1)采样数据存盘和加载 2)演示程序中可以实现图形的打印预览和打印功能,曲线从原点开始
💻 H
字号:
#if !defined(AFX_ASMDLG_H__C4C25440_8371_11D4_9644_A80277B08019__INCLUDED_)
#define AFX_ASMDLG_H__C4C25440_8371_11D4_9644_A80277B08019__INCLUDED_

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

#include ".\\plot\\clplot.h"

#define WM_ASMPRINTORPREVIEW WM_USER+100   
#define ASMPRINTPREVIEW    1    //message notification code
#define ASMPRINT           2
#define ASMEND             3




/////////////////////////////////////////////////////////////////////////////
// CAsmDlg dialog

class CAsmDlg : public CDialog
{
// Construction
public:
	//CAsmDlg(CWnd* pParent = NULL);   // standard constructor

	CAsmDlg(CView *pView);   // customize constructor
	BOOL Create();


// Dialog Data
	//{{AFX_DATA(CAsmDlg)
	enum { IDD = IDD_ASMDIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

public:
	CView * m_pView;
	clPlot m_asmrealtime;// ASM实时曲线控件
	long m_lStartTime;//测试起始时刻

	BOOL m_bFirstTime;//对话框创建标志(为了将对话框设置为最大化)

	BOOL m_bPausing;//暂停还是继续?
	BOOL m_bFirstStart;//第一次按开始按钮标志
	BOOL m_bCanSize;      //在对话框创建后才允许调整内部控件的大小
	CRect m_offPlotToDlg;    //实时曲线区到对话框各边缘的距离(逻辑坐标)
	CSize m_offBt;//各个竖向按钮距离对话框右下边界的距离(逻辑坐标)
	
	int m_nXInterval;  //X轴可视区表示的时间段(s)


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CAsmDlg)
	afx_msg void OnAsmprintpreview();
	afx_msg void OnAsmprint();
	afx_msg void OnAsmstart();
	afx_msg void OnAsmpause();
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnPaint();
	afx_msg void OnAsmdatastore();
	afx_msg void OnAsmdatasload();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ASMDLG_H__C4C25440_8371_11D4_9644_A80277B08019__INCLUDED_)

⌨️ 快捷键说明

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