
// SyncDlg.h : header file
//

#pragma once

//--------------------------------------
// The definition of the maximum number of acquiring samples : 1000
//--------------------------------------
#define	MAX_SAMPLES		1000

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

// Dialog Data
	enum { IDD = IDD_SYNC_DIALOG };
	CStatic	m_Status2;
	CStatic	m_Status1;
	CRichEditCtrl	m_EditData2;
	CRichEditCtrl	m_EditData1;
	CEdit	m_Info2;
	CEdit	m_Info1;
	CEdit	m_DeviceName2;
	CEdit	m_DeviceName1;
	CStatic	m_Count2;
	CStatic	m_Count1;
	CComboBox	m_Range2;
	CComboBox	m_Range1;

	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 OnCbnSelchangeComboRange1();
	afx_msg void OnCbnSelchangeComboRange2();
	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_Id1;						// Device1 ID
	short	m_Id2;						// Device2 ID
	float	m_Data1[MAX_SAMPLES];		// Array of retrieving data for Device1
	float	m_Data2[MAX_SAMPLES];		// Array of retrieving data for Device2
	long	m_Samples1;					// Number of retrieved samples for Device1
	long	m_Samples2;					// Number of retrieved samples for Device2
};
