// pc-dasDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "ClrButton.h"
#include "Serial.h"

// CpcdasDlg dialog
class CpcdasDlg : public CDialog
{
// Construction
public:
	CpcdasDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_PCDAS_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 OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedparosciPortSet();
	afx_msg void OnBnClickedkftPortSet();
	afx_msg void OnBnClickedwfPortSet();
	afx_msg void OnEnChangekftmode();
	afx_msg void OnEnChangekftdepthloopopen();
protected:
	CClrButton _kearfottBtn, _parosciBtn, _winfrogBtn, _resonAddrBtn;
	BOOL _kearfottConnected, _parosciConnected, _winfrogConnected, _resonConnected;
	CSerial _kearfottPort, _parosciPort, _winfrogPort;
	UINT_PTR _timerId;
	void OnTimer(UINT nIDEvent);
};
