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

📄 4rdview.h

📁 编译原理实验
💻 H
字号:
// 4rdView.h : interface of the CMy4rdView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_4RDVIEW_H__9DEF3E64_AA3B_415D_BC4C_5D3AAAFF812F__INCLUDED_)
#define AFX_4RDVIEW_H__9DEF3E64_AA3B_415D_BC4C_5D3AAAFF812F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "In.h"

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

// Attributes
public:
	CMy4rdDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy4rdView)
	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:
	bool	m_result;	//判断输出结果
//	bool	m_color;	//单步计算变色用
	CIn		dlg;
	void	initial();
	bool	m_id;		//判断是否显示标识符的值
	bool	out_cal;	//单步计算输出控制
	void	Caculate(CDC* pDC);	//单步计算输出
	int		m_num;		//控制单步
	bool	first;		//控制单步
	bool	first2;		//控制单步计算
	bool	move;		//判断是否移动
	CPoint	m_point;	//按下时的坐标
	void PTree(CDC *pDC);
//	int		m_x,m_y;	//跟结点坐标
	bool	m_cal;		//是否到了能够计算表达式一步
	bool	ptree;		//判断是否输出语法树
	bool	m_tree;		//判断是否到了生成语法树这一步
	int		m_count;	//输入字符的个数
	CString m_Instring;	//用于显示输入的字符串
	bool	m_input;	//判断是否正在输入
	bool	input;		//是否输出输入字符串
	virtual ~CMy4rdView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy4rdView)
	afx_msg void OnInput();
	afx_msg void OnTree();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnCaculate();
	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 OnExample1();
	afx_msg void OnExample2();
	afx_msg void OnExample3();
	afx_msg void OnExample4();
	afx_msg void OnExample5();
	afx_msg void OnExample6();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 4rdView.cpp
inline CMy4rdDoc* CMy4rdView::GetDocument()
   { return (CMy4rdDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_4RDVIEW_H__9DEF3E64_AA3B_415D_BC4C_5D3AAAFF812F__INCLUDED_)

⌨️ 快捷键说明

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