📄 thread~3.h
字号:
// ThreadExp1View.h : CThreadExp1View 类的接口
//
typedef struct tagPARAM {
int xPos;
int yPos;
} PARAM;
#pragma once
class CThreadExp1View : public CView
{
protected: // 仅从序列化创建
CThreadExp1View();
DECLARE_DYNCREATE(CThreadExp1View)
// 属性
public:
CThreadExp1Doc* GetDocument() const;
// 操作
public:
//结束线程函数
void OnExit();
//控制线程的执行
BOOL m_go, m_suspend;
//线程结束的计数
int m_EndThreadCount;
//传递给线程的参数
PARAM m_param[7];
//线程对象指针
CWinThread* m_pThread[7];
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 实现
public:
virtual ~CThreadExp1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
afx_msg void OnStart();
afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
afx_msg void OnStop();
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
afx_msg void OnContinue();
afx_msg void OnUpdateContinue(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // ThreadExp1View.cpp 的调试版本
inline CThreadExp1Doc* CThreadExp1View::GetDocument() const
{ return reinterpret_cast<CThreadExp1Doc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -