// TaskDlg.h : ヘッダー ファイル
//

#pragma once
#include "afxwin.h"
#include "CAO.h"
#include "afxcmn.h"

// CTaskDlg ダイアログ
class CTaskDlg : public CDialog
{
// コンストラクション
public:
	CTaskDlg(CWnd* pParent = NULL);	// 標準コンストラクタ

// ダイアログ データ
	enum { IDD = IDD_TASK_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV サポート

// 実装
protected:
	HICON m_hIcon;
	CComboBox m_cmbParam, m_cmbStart, m_cmbStop;
	CButton m_btnConn, m_btnDisconn,
		m_btnStart, m_btnStop,
		m_btnRefresh, m_btnExit;
	CListCtrl m_lstTask;

	ICaoEngine      *m_eng;
	ICaoWorkspaces  *m_wss;
	ICaoWorkspace   *m_ws;
	ICaoControllers *m_ctrls;
	ICaoController  *m_ctrl;
	ICaoTasks       *m_tsks;

	// 生成された、メッセージ割り当て関数
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBnClickedButtonConnect();
	afx_msg void OnBnClickedButtonDisconnect();
	afx_msg void OnBnClickedButtonStart();
	afx_msg void OnBnClickedButtonStop();
	afx_msg void OnBnClickedButtonRefresh();
	afx_msg void OnBnClickedButtonExit();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	DECLARE_MESSAGE_MAP()

	void InitializeList();
	void ShowErrorNumber(HRESULT hr);

};
