// SimpleIODlg.h : header file
//

#pragma once
#include "afxwin.h"


// CSimpleIODlg dialog
class CSimpleIODlg : public CDialog
{
// Construction
public:
	CSimpleIODlg(CWnd* pParent = NULL);	// standard constructor
	// Additional data
	short	Id;					// Device ID
	long	Ret;				// Return value
	char	szError[256];		// Error string
	TCHAR	szReturnCode[256];	// The string for error
	TCHAR	szText[100];

// Dialog Data
	enum { IDD = IDD_SIMPLEIO_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:
	CComboBox m_DeviceName;
	CEdit m_InpPortNo;
	CEdit m_InpPortData;
	CEdit m_InpBitNo;
	CEdit m_InpBitData;
	CEdit m_OutPortNo;
	CEdit m_OutPortData;
	CEdit m_OutBitNo;
	CEdit m_OutBitData;
	CEdit m_ReturnCode;
	afx_msg void OnBnClickedButtonDioInit();
	afx_msg void OnBnClickedButtonDioExit();
	afx_msg void OnBnClickedButtonExit();
	afx_msg void OnBnClickedButtonInpByte();
	afx_msg void OnBnClickedButtonInpBit();
	afx_msg void OnBnClickedButtonOutByte();
	afx_msg void OnBnClickedButtonOutBit();
	afx_msg void OnBnClickedButtonEchoBackByte();
	afx_msg void OnBnClickedButtonEchoBackBit();
};
