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

📄 mypaintview.h

📁 用Visual C++实现的绘制函数图像的程序。给定任意函数表达式
💻 H
字号:
// MyPaintView.h : interface of the CMyPaintView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYPAINTVIEW_H__8FF2BA94_BFD4_4E21_B661_7634434151A6__INCLUDED_)
#define AFX_MYPAINTVIEW_H__8FF2BA94_BFD4_4E21_B661_7634434151A6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Paint.h"
#include "Mpoint.h"
#include "Myline.h"

class CMyPaintView : public CView
{
	void friend CPaint::OnPaintOk(),CPaint::OnButton2(),CPaint::OnButton1();
public: // create from serialization only
	CMyPaintView();
	DECLARE_DYNCREATE(CMyPaintView)
    // Attributes
public:
	CMyPaintDoc* GetDocument();
    CPaint paint;

// Operations
public:
	afx_msg void OnSaveBmp();
	afx_msg void OnPaint();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyPaintView)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);	
	//}}AFX_VIRTUAL

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

protected:
	//{{AFX_MSG(CMyPaintView)	
	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 void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnShowHide();
	afx_msg void OnNNet();
	afx_msg void OnPNet();
	afx_msg void OnPopHelp();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDeleteLine();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnSet();
	afx_msg void OnAboutMe();	
	afx_msg void OnIdPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

// Generated message map functions
protected:

};

#ifndef _DEBUG  // debug version in MyPaintView.cpp
inline CMyPaintDoc* CMyPaintView::GetDocument()
   { return (CMyPaintDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MYPAINTVIEW_H__8FF2BA94_BFD4_4E21_B661_7634434151A6__INCLUDED_)

⌨️ 快捷键说明

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