
// WaveformJudgement1Dlg.h : wb_[ t@C
//

#pragma once

//--------------------------------------
// WőTv`F512Tv
//--------------------------------------
#define	MAX_SAMPLES		512

// CWaveformJudgement1Dlg _CAO
class CWaveformJudgement1Dlg : public CDialogEx
{
// RXgNV
public:
	CWaveformJudgement1Dlg(CWnd* pParent = NULL);	// WRXgN^[

// _CAO f[^
	enum { IDD = IDD_WAVEFORMJUDGEMENT1_DIALOG };
	CStatic	m_Status;
	CStatic	m_NGCount;
	CStatic	m_Graph;
	CEdit	m_Info;
	CEdit	m_DeviceName;

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV T|[g


// 
protected:
	HICON m_hIcon;

	// ꂽAbZ[W蓖Ċ֐
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonInit();
	afx_msg void OnBnClickedButtonSetting();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStatus();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonExit();
protected:
	void DrawGraph();					// Ot`֐

	short	m_Id;						// foCXID
	long	m_Data[MAX_SAMPLES];		// 擾f[^̔z
	long	m_UpperData[MAX_SAMPLES];	// g`f[^̔z
	long	m_LowerData[MAX_SAMPLES];	// g`艺f[^̔z
	long	m_Records;					// 擾R[h
	long	m_Resolution;				// foCX̕\
};
