ThreadInfor.h
上传用户:bingyunhe
上传日期:2013-07-06
资源大小:723k
文件大小:1k
- //按钮消息结构
- #pragma once
- //#include "stdafx.h"
- //#include <list>
- //#include "afxcoll.h"
- #include "afxtempl.h"
- using namespace std;
- class CBtnMsg :public CObject
- {
- public:
- CBtnMsg( ){ }
- ~CBtnMsg( )
- {
- if (pBtnNo != NULL )
- delete pBtnNo ;
- if ( pCurrTime != NULL )
- delete pCurrTime ;
- }
- int* pBtnNo ;
- CFileTime* pCurrTime ;
- //TCHAR * pChar ;
- } ;
- typedef CTypedPtrList<CObList,CBtnMsg*> BtnMsg ; //按钮消息的枚举器
- struct ThreadInfor
- {
- HWND hWnd ; //父窗体句柄
- BOOL * lpKillThread ; //结束线程的标志
- BOOL * lpLock ;
- BtnMsg* pBtnMsg ; //按钮消息的指针
- } ;
- //线程处理函数
- UINT ThreadProc(LPVOID lpParam) ;