examplethread.h

来自「从学案例入手」· C头文件 代码 · 共 59 行

H
59
字号
#if !defined(AFX_EXAMPLETHREAD_H__6DD45159_82C8_4401_AA05_5725188D45B2__INCLUDED_)
#define AFX_EXAMPLETHREAD_H__6DD45159_82C8_4401_AA05_5725188D45B2__INCLUDED_



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

#include "UIThreadDlg.h" //

/////////////////////////////////////////////////////////////////////////////
// CExampleThread thread

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

// Attributes
public:

// Operations
public:
	CUIThreadDlg * m_pOwner;//指向类CMutexesDlg指针
	BOOL m_bDone;//用以控制线程执行
	void SetOwner(CUIThreadDlg* pOwner);


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

// Implementation
protected:
	virtual ~CExampleThread();

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

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_EXAMPLETHREAD_H__6DD45159_82C8_4401_AA05_5725188D45B2__INCLUDED_)

⌨️ 快捷键说明

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