| 1234567891011121314151617181920212223242526272829 | 
							- #pragma once
 
- class CMessagePumpThread
 
- {
 
- public:
 
- 	CMessagePumpThread(void);
 
- 	~CMessagePumpThread(void);
 
- 	static unsigned int __stdcall MessagePumpThread(void* thisptr);
 
- protected:
 
- 	virtual void TakeMsg(UINT msg, WPARAM wParam, LPARAM lParam)	{ return; }
 
- 	void RunMessagePump();
 
- 	UINT m_threadID;
 
- 	uintptr_t m_thread;
 
- 	HANDLE m_hEvt;
 
- public:
 
- 	void Start();
 
- 	void Stop(); 
 
- 	void PostMsg(UINT msg, WPARAM wParam, LPARAM lParam);
 
- 	UINT getThreadID() const { return m_threadID; }
 
- 	uintptr_t getThread() const { return m_thread; }
 
- };
 
 
  |