www.pudn.com > Thread_simple1.zip > ThreadDemo1View.h


// ThreadDemo1View.h : interface of the CThreadDemo1View class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_THREADDEMO1VIEW_H__3CAF4D6E_8775_11D1_B719_00C0A83735D8__INCLUDED_) 
#define AFX_THREADDEMO1VIEW_H__3CAF4D6E_8775_11D1_B719_00C0A83735D8__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
typedef struct{ 
	HWND hWnd; 
	BOOL *lpKillThread; 
} THREAD_INFO; 
 
class CThreadDemo1View : public CView 
{ 
protected: // create from serialization only 
	CThreadDemo1View(); 
	DECLARE_DYNCREATE(CThreadDemo1View) 
 
// Attributes 
public: 
	CThreadDemo1Doc* GetDocument(); 
 
	BOOL m_bKillThread; 
	CWinThread *m_pThread; 
	THREAD_INFO m_ThreadInfo; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CThreadDemo1View) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CThreadDemo1View(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CThreadDemo1View) 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in ThreadDemo1View.cpp 
inline CThreadDemo1Doc* CThreadDemo1View::GetDocument() 
   { return (CThreadDemo1Doc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_THREADDEMO1VIEW_H__3CAF4D6E_8775_11D1_B719_00C0A83735D8__INCLUDED_)