
// SlaveDlg.h : header file
//

#pragma once


// CSlaveDlg dialog
class CSlaveDlg : public CDialogEx
{
// Construction
public:
	CSlaveDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_SLAVE_DIALOG };
	CListBox	m_ListReturncode;
	CComboBox	m_ComboEoi;
	CComboBox	m_ComboDelimiter;
	CString	m_DeviceNameString;
	CString	m_SendString;
	CString	m_RecString;
	long	m_Myaddress;
	short	m_Stb;
	int		m_RadioSrqSend;
	int		m_RadioParallelpollResopnse;

	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

private:
	short	m_Id;

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedInitial();
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedSend();
	afx_msg void OnBnClickedRec();
	afx_msg void OnBnClickedSrqSetting();
	afx_msg void OnBnClickedParallelpollSetting();
	afx_msg void OnBnClickedClearData();
	afx_msg void OnBnClickedClearReturncode();

	void funcSetlstRet(TCHAR *);
	bool funcSetParam();
};
