
// InfinityDlg.h : header file
//

#pragma once

//--------------------------------------
// The definition of the maximum number of acquiring samples at one time : 1000
//--------------------------------------
#define	MAX_SAMPLES		10000

// CInfinityDlg dialog
class CInfinityDlg : public CDialogEx
{
// Construction
public:
	CInfinityDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_INFINITY_DIALOG };
	CStatic	m_Total;
	CStatic	m_Status;
	CEdit	m_Info;
	CEdit	m_DeviceName;
	CStatic	m_Count;
	CComboBox	m_Range;

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonInit();
	afx_msg void OnCbnSelchangeComboRange();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonInfo();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonExit();
	afx_msg void OnDestroy();
	afx_msg void OnClose();
protected:
	short	m_Id;						// Device ID
	float	m_Data[MAX_SAMPLES];		// Array of retrieving data
	long	m_Samples;					// Number of retrieved samples
	long	m_TotalSamples;				// Total number of samples
};
