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

📄 llview.h

📁 windows核心编程,详细讲述WINDOWS编程原理
💻 H
字号:
// llView.h : interface of the CLlView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LLVIEW_H__DD69FDCE_A633_4B86_90B2_036128FC9764__INCLUDED_)
#define AFX_LLVIEW_H__DD69FDCE_A633_4B86_90B2_036128FC9764__INCLUDED_

#include "Shape1.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Line.h"
#include "Rectangle.h"
#include "Ellipse.h"
#include "Square.h"
#include "Circle.h"
#include "Random.h"
#include "Eraser.h"

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

// Attributes
public:
	CLlDoc* GetDocument();
	enum{IsMove,IsDelete,DRAW_LINE,DRAW_RECTANGLE,DRAW_ERASER,DRAW_ELLIPSE,DRAW_SQUARE,DRAW_CIRCLE,DRAW_RANDOM} m_euDraw_Type;
	// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLlView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	CObList m_listTemp;
	bool m_IsSelect;
	bool m_IsGet;
	virtual bool IsInArea(CPoint pt);
	int m_nBrushtype;
	HCURSOR m_Cursor;
	COLORREF  m_Brushcolor;
	COLORREF  m_Pencolor;
	UINT      m_nPenwidth;
	int       m_nLinetype;
	CShape *m_pshapeSelect;
	CShape *m_pShape;
	CPoint m_ptOrigin;
	CPoint m_ptEnd;
	CPoint m_ptTemp;
    //enum{} m_euType;
	bool m_bStart;
	 // bool IsMove;
	  //bool IsDelete;
	virtual ~CLlView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLlView)
	afx_msg void OnLine();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEllipse();
	afx_msg void OnRectangle();
	afx_msg void OnSquare();
	afx_msg void OnCircle();
	afx_msg void OnRandom();
	afx_msg void OnDash();
	afx_msg void OnDashdot();
	afx_msg void OnSolid();
	afx_msg void OnPenwidth1();
	afx_msg void OnPenwidth2();
	afx_msg void OnPenwidth3();
	afx_msg void OnPenwidth4();
	afx_msg void OnBrushcolor();
	afx_msg void OnPencolor();
	afx_msg void OnUpdateDash(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDashdot(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSolid(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePenwidth1(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePenwidth2(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePenwidth3(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePenwidth4(CCmdUI* pCmdUI);
	afx_msg void OnEraser();
	afx_msg void OnBrush4();
	afx_msg void OnBrush1();
	afx_msg void OnBrush2();
	afx_msg void OnBrush3();
	afx_msg void OnBrush5();
	afx_msg void OnBrush6();
	afx_msg void OnBrush7();
	afx_msg void OnUpdateBrush1(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush2(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush3(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush4(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush5(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush6(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrush7(CCmdUI* pCmdUI);
	afx_msg void OnMove();
	afx_msg void OnDelete();
	afx_msg void OnColorpane();
	afx_msg void OnEditRedo();
	afx_msg void OnEditUndo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in llView.cpp
inline CLlDoc* CLlView::GetDocument()
   { return (CLlDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LLVIEW_H__DD69FDCE_A633_4B86_90B2_036128FC9764__INCLUDED_)

⌨️ 快捷键说明

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