// MultiAoDlg.h : header file
//

#pragma once
#include "afxwin.h"


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

// Dialog Data
	enum { IDD = IDD_MULTIAO_DIALOG };

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

private:
	//Return value of function
	long	Ret, Ret2;
	//ID
	short	Id;
	//Maximum number of channels
	short	MaxAoChannels;
	//Output voltage data
	float	AoVolt[256];
	//ErrorCode string
	char	ErrorString[256];
	TCHAR	szErrorString[256];
	//Used to format string
	CString	TextString;
	CString	TextTemp;

// 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();
	CComboBox m_DeviceName;
	CComboBox m_AoRange;
	CEdit m_AoChannel;
	afx_msg void OnCbnSelchangeComboAiosetaorange();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonSet();
	CStatic m_ErrorString;
	CStatic m_Channel;
	CStatic m_Volt;
	CStatic m_Cdata2;
	CStatic m_Cdata1;
	afx_msg void OnBnClickedButtonAiomultiao();
	afx_msg void OnBnClickedButtonAioexit();
	CStatic m_Start;
	CStatic m_Err;
	CEdit m_AoVolt;
};
