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

📄 liming02view.h

📁 自己编的程序大家下载一下很好的希望大家多多提出意见
💻 H
字号:
// liming02View.h : interface of the CLiming02View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LIMING02VIEW_H__5BFABC36_4A0C_4BD7_A193_75F089C9E966__INCLUDED_)
#define AFX_LIMING02VIEW_H__5BFABC36_4A0C_4BD7_A193_75F089C9E966__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CLiming02View : public CScrollView
{
protected: // create from serialization only
	CLiming02View();
	DECLARE_DYNCREATE(CLiming02View)

// Attributes
public:
	//添加颜色变化变量
	int R;
	int G;
	int B;
	int m_red;
	int m_green;
	int m_blue;
	int m_Dragging;
//	CPoint point.x;
//	CPoint point.y;
	CPoint m_PointOld;
	CPoint m_PointOrigin;
	
	CLiming02Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLiming02View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLiming02View)
	afx_msg void OnSetColor();
	afx_msg void OnMidLine();
	afx_msg void OnMidEllipse();
	afx_msg void OnMidCircle();
	afx_msg void OnBresenham();
	afx_msg void OnDda();
	afx_msg void OnBresenhamcircle();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in liming02View.cpp
inline CLiming02Doc* CLiming02View::GetDocument()
   { return (CLiming02Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LIMING02VIEW_H__5BFABC36_4A0C_4BD7_A193_75F089C9E966__INCLUDED_)

⌨️ 快捷键说明

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