⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mythread.h

📁 MFC 函数实用手册 MFC 函数实用手册
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -