// SingleAiDlg.h : header file
//

#pragma once
#include "afxwin.h"


// CSingleAiDlg dialog
class CSingleAiDlg : public CDialog
{
// Construction
public:
	CSingleAiDlg(CWnd* pParent = NULL);	// standard constructor
	void ShowRemoteStatus(void);

// Dialog Data
	enum { IDD = IDD_SINGLEAI_DIALOG };

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


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonAioinit();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonAiosingleai();
	afx_msg void OnBnClickedButtonAioexit();

private:
	//Return value of function
	long	Ret, Ret2;
	//ID
	short	Id;
	//ErrorCode string
	char	ErrorString[256];
	TCHAR	szErrorString[256];
	//Used to format string
	CString	TextString;
public:
	CComboBox m_DeviceName;
	CComboBox m_AiRange;
	CEdit m_AiChannel;
	afx_msg void OnCbnSelchangeComboAiosetairange();
	CStatic m_ErrorString;
	CStatic m_Cdata;
	CStatic m_Volt;
	CStatic m_Start;
	CStatic m_Err;
};
