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

📄 lq01view.h

📁 用多态实现的画图小程序
💻 H
字号:
// lq01View.h : interface of the CLq01View class
//
/////////////////////////////////////////////////////////////////////////////
#include "line.h"
#include "shape.h"
#include "myrect.h"
#if !defined(AFX_LQ01VIEW_H__69EEE4BA_75C4_4996_8E53_53542745527E__INCLUDED_)
#define AFX_LQ01VIEW_H__69EEE4BA_75C4_4996_8E53_53542745527E__INCLUDED_

#include "Line.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000




class CLq01View : public CView
{
protected: // create from serialization only
	CLq01View();
	DECLARE_DYNCREATE(CLq01View)

// Attributes
public:
	CLq01Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLq01View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CLq01View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLq01View)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:

	CPoint m_ptPre;
	CPoint m_ptS;
	CPoint m_ptE;
	CLine m_MyLine;
	CMyRect m_MyRect;
	CShape * m_MyShape;
	int m_nShape;
	UINT m_nColor;
	BOOL beDraw;

};

#ifndef _DEBUG  // debug version in lq01View.cpp
inline CLq01Doc* CLq01View::GetDocument()
   { return (CLq01Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LQ01VIEW_H__69EEE4BA_75C4_4996_8E53_53542745527E__INCLUDED_)

⌨️ 快捷键说明

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