
// IntervalDlg.h : header file
//

#pragma once


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

// Dialog Data
	enum { IDD = IDD_INTERVAL_DIALOG };
	CEdit m_edit_device_name;
	CStatic m_static_product_name;
	CEdit m_edit_interval;
	CStatic m_static_msg_count;
	CEdit m_edit_ret;
	CButton m_btn_tim_start_timer;
	CButton m_btn_tim_stop_timer;

	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()

	short			TimerId;
	unsigned long	interval_count;
public:
	afx_msg void OnBnClickedButtonTimInit();
	afx_msg void OnBnClickedButtonTimStartTimer();
	afx_msg void OnBnClickedButtonTimStopTimer();
	afx_msg void OnBnClickedButtonTimExit();
	afx_msg void OnBnClickedButtonExit();

protected:
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);

};
