// Pti4Dlg.h : header file
//

#pragma once
#include "afxwin.h"


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

// Dialog Data
	enum { IDD = IDD_PTI4_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 OnBnClickedButtonInit();
	afx_msg void OnBnClickedButtonMset();
	afx_msg void OnBnClickedButtonAset();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonInput();
	afx_msg void OnBnClickedButtonStatus();
	afx_msg void OnBnClickedButtonExit();
	CComboBox m_Combo_Device;

private:
	void ErrorHandling(TCHAR *, long);
	void ShowRemoteStatus(void);

	short	m_Id;	// ID

public:
	CEdit m_Edit_Ret;
	float m_Edit_Ch0;
	float m_Edit_Ch1;
	float m_Edit_Ch2;
	float m_Edit_Ch3;
	CEdit m_Edit_Sts_Dc;
	CEdit m_Edit_Sts_UAlarm;
	CEdit m_Edit_Sts_LAlarm;
	CStatic m_Start;
	CStatic m_Err;
};
