// Event1Dlg.h : header file
//

#if !defined(AFX_EVENT1DLG_H__2B1CF860_6E3A_41B3_ABF1_70F925C62469__INCLUDED_)
#define AFX_EVENT1DLG_H__2B1CF860_6E3A_41B3_ABF1_70F925C62469__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

typedef struct{
	HANDLE     *hEvent;
	BOOL       *lpStopThread;
	int        *TotalReceive;
	int        *TotalTimeout;
	int        *ThreadIndex;
	CListBox   *pListBox;
} THREAD_DATA;

/////////////////////////////////////////////////////////////////////////////
// CEvent1Dlg dialog

class CEvent1Dlg : public CDialog
{
// Construction
public:
	CEvent1Dlg(CWnd* pParent = NULL);	// standard constructor
    
	int       m_iTotalReceive;
    int       m_iTotalTimeout;
    int       m_iThreadIndex;
	CListBox  *m_pListBox;

	BOOL m_bStopThread;
	CWinThread *m_pThread;
	THREAD_DATA m_ThreadData;

// Dialog Data
	//{{AFX_DATA(CEvent1Dlg)
	enum { IDD = IDD_EVENT1_DIALOG };
	CString	m_strIPAddress;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEvent1Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CEvent1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnExit();
	afx_msg void OnStart();
	afx_msg void OnStop();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EVENT1DLG_H__2B1CF860_6E3A_41B3_ABF1_70F925C62469__INCLUDED_)
