recordcurse.h

来自「采集电压 用研华6220板卡采集电压值 实时显示 电压变化」· C头文件 代码 · 共 82 行

H
82
字号
#if !defined(AFX_RECORDCURSE_H__9F42D2A9_E121_4C20_9C69_C3E2219655CF__INCLUDED_)
#define AFX_RECORDCURSE_H__9F42D2A9_E121_4C20_9C69_C3E2219655CF__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// RecordCurse dialog

class RecordCurse : public CDialog
{
// Construction
public:
	void DrawGrid(CDC *pDC);
	RecordCurse(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(RecordCurse)
	enum { IDD = IDD_DIALOG_RECORD };
	CSliderCtrl	m_horscro;
	CStatic	m_Canvas;
	//}}AFX_DATA
	private:
	BOOL iscontinue;


	CString xfname;
	double start_pos;//绘图起点
	BOOL havedata;
	double end_time;//绘图重点时间
	int old_point;	//进度条起点位置
	int all_pos;//进度条总点数

	int draw_size_t;
	ASKDRAWMODE mydraw;

	SAMPLEPARAM mypoint;
	SAMPLEPARAM mystartpoint;


	void DisplayData(void);//显示数据
	BOOL GetData(double now_pos);
	void SetDrawItem(void);
	void InitDrawItem(void);
	

	CRect WRect;
	int startx;
	int zero;
	int draw_size_x;
	int draw_size_y;



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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(RecordCurse)
	afx_msg void OnSelectRecord();
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_RECORDCURSE_H__9F42D2A9_E121_4C20_9C69_C3E2219655CF__INCLUDED_)

⌨️ 快捷键说明

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