www.pudn.com > C8051JTAG_SRC.rar > ProgThreah.h


#if !defined(AFX_PROGTHREAH_H__0F7590C0_AA63_4363_ACC4_CC2F7DC92B78__INCLUDED_) 
#define AFX_PROGTHREAH_H__0F7590C0_AA63_4363_ACC4_CC2F7DC92B78__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ProgThreah.h : header file 
// 
 
#define WM_BEGINREAD (WM_USER+200) 
#define WM_BEGINWRITE (WM_USER+201) 
#define WM_BEGINVERY (WM_USER+202) 
 
///////////////////////////////////////////////////////////////////////////// 
// ProgThreah thread 
 
class ProgThreah : public CWinThread 
{ 
	DECLARE_DYNCREATE(ProgThreah) 
protected: 
	ProgThreah();           // protected constructor used by dynamic creation 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(ProgThreah) 
	public: 
	virtual BOOL InitInstance(); 
	virtual int ExitInstance(); 
	virtual int Run(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~ProgThreah(); 
 
	// Generated message map functions 
	//{{AFX_MSG(ProgThreah) 
		// NOTE - the ClassWizard will add and remove member functions here. 
	afx_msg LRESULT onWrite(WPARAM wParam,LPARAM lParam); 
	afx_msg LRESULT onRead(WPARAM wParam,LPARAM lParam); 
	afx_msg LRESULT onVery(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_PROGTHREAH_H__0F7590C0_AA63_4363_ACC4_CC2F7DC92B78__INCLUDED_)