www.pudn.com > MultiThread.rar > MultiThread2Dlg.h


// MultiThread2Dlg.h : header file 
// 
 
#if !defined(AFX_MULTITHREAD2DLG_H__FE602B50_881A_4C1F_900A_2BE32FA6AD27__INCLUDED_) 
#define AFX_MULTITHREAD2DLG_H__FE602B50_881A_4C1F_900A_2BE32FA6AD27__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CMultiThread2Dlg dialog 
 
//注意,线程函数的声明应在类CMultiThread2Dlg的外部。 
void ThreadFunc(int integer); 
 
class CMultiThread2Dlg : public CDialog 
{ 
// Construction 
public: 
	CMultiThread2Dlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CMultiThread2Dlg) 
	enum { IDD = IDD_MULTITHREAD2_DIALOG }; 
	int		m_nCount;//打开ClassWizard,为编辑框IDC_COUNT添加int型变量m_nCount。 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMultiThread2Dlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
    //分别代表线程的句柄和ID。 
		HANDLE hThread; 
    	DWORD ThreadID; 
 
	// Generated message map functions 
	//{{AFX_MSG(CMultiThread2Dlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnStart();// 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MULTITHREAD2DLG_H__FE602B50_881A_4C1F_900A_2BE32FA6AD27__INCLUDED_)