📄 sunnythread.h
字号:
// SunnyThread.h: interface for the CSunnyThread class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_)
#define AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSunnyThread
{
public:
CSunnyThread(BOOL bAutoDelete = FALSE);
virtual ~CSunnyThread();
typedef DWORD (WINAPI *THREADFUNC)(LPVOID lpParameter);
BOOL Create(THREADFUNC pThreadFunc = NULL, void* pParam = NULL, BOOL bSuspended = FALSE);
BOOL WaitForEnd(DWORD dwTiomeout = INFINITE);
void Resume() const;
void Suspend() const;
BOOL SetPriority(int nPriority) const;
BOOL PostMessage(const UINT msg, const WPARAM wParam = 0, const LPARAM lParam = 0) const;
private:
THREADFUNC m_pThreadFunc;
BOOL m_bAutoDelete;
int m_nRetValue;
void* m_pParam;
HANDLE m_hThread;
DWORD m_dwThreadID;
};
#endif // !defined(AFX_SUNNYTHREAD_H__1828EC42_7F38_4298_B94B_12C92AB28542__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -