// AVRusbTemperDlg.h : header file
//

#if !defined(AFX_AVRUSBTEMPERDLG_H__B1F02DA2_C0C0_4746_B655_224412010D2F__INCLUDED_)
#define AFX_AVRUSBTEMPERDLG_H__B1F02DA2_C0C0_4746_B655_224412010D2F__INCLUDED_

#include "BtnST.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define USBDEV_SHARED_VENDOR    0x16C0  /* VOTI */
#define USBDEV_SHARED_PRODUCT   0x05DC  /* Obdev's free shared PID */
/* Use obdev's generic shared VID/PID pair and follow the rules outlined
 * in firmware/usbdrv/USBID-License.txt.
 */



#define	GET_CUR_TMP			2
#define SET_MOTO_SPEED		4


#define USB_ERROR_NOTFOUND  1
#define USB_ERROR_ACCESS    2
#define USB_ERROR_IO        3




#define WM_SHOWTASK WM_USER + 100

/////////////////////////////////////////////////////////////////////////////
// CAVRusbTemperDlg dialog

class CAVRusbTemperDlg : public CDialog
{
// Construction
public:
	void toTray(BOOL show);
	BOOL AlarmFlag;
	CButtonST btn_mode;
	BOOL ModeFlag;
	CButtonST btn_temper;
	CButtonST btn_down;
	CButtonST btn_up;
	void DisplyNum(int num);
	CButtonST btn_point;
	CButtonST btn_solid;
	CButtonST btn_3;
	CButtonST btn_2;
	CButtonST btn_1;
	CAVRusbTemperDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CAVRusbTemperDlg)
	enum { IDD = IDD_AVRUSBTEMPER_DIALOG };
	CEdit	m_tmp_str;
	UINT	m_tem_alarm;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAVRusbTemperDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnCancel();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBtnUp();
	afx_msg void OnChangeEditTmp();
	afx_msg void OnBtnDown();
	afx_msg void OnBtnMode();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg LRESULT onShowTask(WPARAM wParam,LPARAM lParam); 
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_AVRUSBTEMPERDLG_H__B1F02DA2_C0C0_4746_B655_224412010D2F__INCLUDED_)
