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

📄 xiaoguanview.h

📁 看看能不能用
💻 H
字号:
// xiaoguanView.h : interface of the CXiaoguanView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_XIAOGUANVIEW_H__6C440F86_884E_4025_97BB_456F8EA6B21F__INCLUDED_)
#define AFX_XIAOGUANVIEW_H__6C440F86_884E_4025_97BB_456F8EA6B21F__INCLUDED_

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


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

// Attributes
public:
	CXiaoguanDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXiaoguanView)
	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:
	COLORREF color;
	int nCount;
	CPoint lpPoints[100];
	void FillPolygon(CPoint *lpPoints, int nCount,  int nColor);
	void m_Ellipse(float x1, float x2, float y1, float y2,CPoint o,int color);
	CPoint A;
	BOOL RightDown;
	//BOOL OnRButtonDown;
	BOOL m_start;
	long m_Zuhe(int nn,int ii);
	CPoint m_point[50];
	int makeBezier();
	bool m_drawpixel;
	bool m_makeBezier;
	int m_totnum;
	long m_stair(int aaa);
	double m_power(double tt, int ii);
	int n;
	virtual ~CXiaoguanView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
//	void m_Ellipse(float x1,float x2,float y1,float y2,int color);
	void dda_line (int xa,int ya, int xb, int yb,int c);
	void m_circle(float x1,float x2,float y1,float y2,int color);
//	void m_circle(float,float);
	CPoint m_ptStart;
	CPoint m_ptOld;
	HCURSOR m_hArrow;
	HCURSOR m_hCross;
	BOOL m_bmouseDown;
	//{{AFX_MSG(CXiaoguanView)
	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 void OnxiaoguanLine();
	afx_msg void OnxiaoguanCcircle();
	afx_msg void OnBezier();
	afx_msg void OnClear();
	afx_msg void OnDrawpixel();
	afx_msg void Onxiaoguanduobianxing();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnxiaoguanEllipse();
	afx_msg void Onxiaoguanfilled();
	afx_msg void OnxiaoguanColor();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in xiaoguanView.cpp
inline CXiaoguanDoc* CXiaoguanView::GetDocument()
   { return (CXiaoguanDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_XIAOGUANVIEW_H__6C440F86_884E_4025_97BB_456F8EA6B21F__INCLUDED_)

⌨️ 快捷键说明

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