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

📄 2dgraphview.h

📁 098u09ur3人味儿味儿 惹我而为人沃尔沃而人为
💻 H
字号:
// 2DGRAPHView.h : interface of the CMy2DGRAPHView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_2DGRAPHVIEW_H__980EA3F3_DCEA_42DE_A76A_5EB637644F41__INCLUDED_)
#define AFX_2DGRAPHVIEW_H__980EA3F3_DCEA_42DE_A76A_5EB637644F41__INCLUDED_

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


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

// Attributes
public:
	CMy2DGRAPHDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy2DGRAPHView)
	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:
	BOOL m_bBackColor;
	COLORREF BackColor;
	BOOL m_bFillcolor;
	BOOL m_bBNull;//记录画刷是否为空
	LOGPEN m_LogPen;
	LOGBRUSH m_LogBrush;
	BOOL m_bEraser;	
	POINT m_Trigon[3];
	POINT m_Polygon[100];
	int m_nOStartY;
	int m_nOStartX;
	int m_radius;
	int m_nStartY2;
	int m_nStartX2;
	int m_nStep;
	int m_nEndY;
	int m_nEndX;
	int m_nStartY;
	int m_nStartX;
	BOOL m_bCircle;
	BOOL m_bEllipse;
	BOOL m_bPolygon;
	BOOL m_bTrigon;
	BOOL m_bRect;
	BOOL m_bPolyline;
	BOOL m_bLine;
	BOOL m_bPoint;
	virtual ~CMy2DGRAPHView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy2DGRAPHView)
	afx_msg void OnGraphPoint();
	afx_msg void OnGraphEllipse();
	afx_msg void OnGraphLine();
	afx_msg void OnGraphRect();
	afx_msg void OnGraphPolygon();
	afx_msg void OnGraphTrigon();
	afx_msg void OnGraphPolyline();
	afx_msg void OnUpdateGraphEllipse(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphLine(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphPoint(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphPolygon(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphPolyline(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphRect(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGraphTrigon(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnGraphCircle();
	afx_msg void OnUpdateGraphCircle(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnSetLinewidth();
	afx_msg void OnSetLineColor();
	afx_msg void OnEraser();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnSetBrushColor();
	afx_msg void OnUpdateEraser(CCmdUI* pCmdUI);
	afx_msg void OnSetLinestyle();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnCleanscreen();
	afx_msg void OnSetBrushNull();
	afx_msg void OnUpdateSetBrushnull(CCmdUI* pCmdUI);
	afx_msg void OnSetBackcolor();
	afx_msg void OnFillcolor();
	afx_msg void OnUpdateFillcolor(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSetBackcolor(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 2DGRAPHView.cpp
inline CMy2DGRAPHDoc* CMy2DGRAPHView::GetDocument()
   { return (CMy2DGRAPHDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_2DGRAPHVIEW_H__980EA3F3_DCEA_42DE_A76A_5EB637644F41__INCLUDED_)

⌨️ 快捷键说明

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