workerthread.h

来自「VC++串口通信设。本书详细说明讲解了在VC++环境下编写串口通信得过程。值得一」· C头文件 代码 · 共 54 行

H
54
字号
#if !defined(AFX_WORKERTHREAD_H__3D53538E_46BD_11D2_9C2B_B46F06C10000__INCLUDED_)
#define AFX_WORKERTHREAD_H__3D53538E_46BD_11D2_9C2B_B46F06C10000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// WorkerThread.h : header file
//

#define MYMESSAGE (WM_USER+1000)

/////////////////////////////////////////////////////////////////////////////
// WorkerThread thread

class WorkerThread : public CWinThread
{
	DECLARE_DYNCREATE(WorkerThread)
	WorkerThread();           // protected constructor used by dynamic creation
protected:

// Attributes
public:

// Operations
public:
	virtual int Run();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(WorkerThread)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~WorkerThread();

	// Generated message map functions
	//{{AFX_MSG(WorkerThread)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WORKERTHREAD_H__3D53538E_46BD_11D2_9C2B_B46F06C10000__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?