mythread.h

来自「MFC 函数实用手册 MFC 函数实用手册」· C头文件 代码 · 共 38 行

H
38
字号
#pragma once



// CMyThread

class CMyThread : public CWinThread
{
public:
	DECLARE_DYNAMIC(CMyThread)
	CMyThread(CWnd* pWnd, HDC hDC,
		CPoint ptPos1, CPoint ptVel1, CPoint ptVel2, CSize Size, COLORREF color);
	virtual ~CMyThread();

// 成员变量
public:
	CRect m_rectBorder;
	HDC m_hDC;
	CDC m_dc;

// 绘制直线的变量
public:
	CPoint m_ptPosition1;
	CPoint m_ptPosition2;
	CPoint m_ptVelocity1;
	CPoint m_ptVelocity2;
	HPEN m_hPen;
	CPen m_pen;

// 操作函数
	void DrawLine();
	void Kill();

protected:
	virtual BOOL InitInstance();
	DECLARE_MESSAGE_MAP()
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?