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

#pragma once
#include "afxwin.h"


#define	MAX_COUNT_CH	(16)	// őJEg`l
#define	DISP_MAX_COUNT_CH	(8)	// őJEg`l

// CDiCounterDlg _CAO
class CDiCounterDlg : public CDialog
{
// RXgNV
public:
	CDiCounterDlg(CWnd* pParent = NULL);	// WRXgN^

// _CAO f[^
	enum { IDD = IDD_DICOUNTER_DIALOG };

	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:
	CEdit m_DeviceName;
	CComboBox m_CountEdge0;
	CComboBox m_CountEdge1;
	CComboBox m_CountEdge2;
	CComboBox m_CountEdge3;
	CComboBox m_CountEdge4;
	CComboBox m_CountEdge5;
	CComboBox m_CountEdge6;
	CComboBox m_CountEdge7;
	CEdit m_CompareCountValue0;
	CEdit m_CompareCountValue1;
	CEdit m_CompareCountValue2;
	CEdit m_CompareCountValue3;
	CEdit m_CompareCountValue4;
	CEdit m_CompareCountValue5;
	CEdit m_CompareCountValue6;
	CEdit m_CompareCountValue7;
	CEdit m_PresetValue0;
	CEdit m_PresetValue1;
	CEdit m_PresetValue2;
	CEdit m_PresetValue3;
	CEdit m_PresetValue4;
	CEdit m_PresetValue5;
	CEdit m_PresetValue6;
	CEdit m_PresetValue7;
	CEdit m_CountValue0;
	CEdit m_CountValue1;
	CEdit m_CountValue2;
	CEdit m_CountValue3;
	CEdit m_CountValue4;
	CEdit m_CountValue5;
	CEdit m_CountValue6;
	CEdit m_CountValue7;
	CEdit m_CountStatus0;
	CEdit m_CountStatus1;
	CEdit m_CountStatus2;
	CEdit m_CountStatus3;
	CEdit m_CountStatus4;
	CEdit m_CountStatus5;
	CEdit m_CountStatus6;
	CEdit m_CountStatus7;
	CEdit m_Ret;


	CComboBox	*m_CountEdge[MAX_COUNT_CH];			// JEgGbWRg[
	CEdit		*m_CompareCountValue[MAX_COUNT_CH];	// rJEglRg[
	CEdit		*m_PresetValue[MAX_COUNT_CH];		// vZbglRg[
	CEdit		*m_CountValue[MAX_COUNT_CH];		// JEglRg[
	CEdit		*m_CountStatus[MAX_COUNT_CH];		// JEgXe[^XRg[

	afx_msg void OnBnClickedButtonDioInit();
	afx_msg void OnBnClickedButtonDioSetCountEdge();
	afx_msg void OnBnClickedButtonDioSetCountMatchValue();
	afx_msg void OnBnClickedButtonDioStartCount();
	afx_msg void OnBnClickedButtonDioReadCount();
	afx_msg void OnBnClickedButtonDioGetCountStatus();
	afx_msg void OnBnClickedButtonDioCountPreset();
	afx_msg void OnBnClickedButtonDioStopCount();
	afx_msg void OnBnClickedButtonDioExit();
	afx_msg void OnBnClickedButtonExit();
};
