line.h

来自「Visual+C+++6[1].0实用教程代码 Visual+C+++6[1]」· C头文件 代码 · 共 28 行

H
28
字号
// line.h : interface of the CPaintLine class
//
/////////////////////////////////////////////////////////////////////////////

class CPaintLine : public CPainted
{
public:
    CPaintLine() {};

  	void Draw(CDC* pCDC);
	void DragDraw(CDC* pCDC, CPoint& pointDragged);
	void DrawSelected(CDC* pCDC);

	void OnDown(CPoint& pointDown);
	void OnUp(CPoint& pointUp, CWnd* pWnd);

	virtual BOOL IsHit(CPoint& pointBang);
	void Serialize(CArchive& ar);
	void GetBoundingRect(CRect* pRect);

protected:
	DECLARE_SERIAL(CPaintLine)

	CPoint m_pointEnd;
};


⌨️ 快捷键说明

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