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

📄 gss_calculatorview.h

📁 简单的计算机,可以实现加减乘除,函数sin,cos,tan等功能
💻 H
字号:
// gss_calculatorView.h : interface of the CGss_calculatorView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GSS_CALCULATORVIEW_H__D54D516D_75BD_442A_8631_B5EAAD873ECB__INCLUDED_)
#define AFX_GSS_CALCULATORVIEW_H__D54D516D_75BD_442A_8631_B5EAAD873ECB__INCLUDED_

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

class CGss_calculatorView : public CFormView
{
protected: // create from serialization only
	CGss_calculatorView();
	DECLARE_DYNCREATE(CGss_calculatorView)

public:
	//{{AFX_DATA(CGss_calculatorView)
	enum { IDD = IDD_GSS_CALCULATOR_FORM };
	CEdit	m_edit_result;
	CString	m_input_result;
	//}}AFX_DATA

// Attributes
public:
	CGss_calculatorDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGss_calculatorView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	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);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:
	Mydata a;
	bool optpress;
    bool restart;
// Generated message map functions
protected:
	//{{AFX_MSG(CGss_calculatorView)
	afx_msg void OnNum7();
	afx_msg void OnNum2();
	afx_msg void OnNum8();
	afx_msg void OnNum9();
	afx_msg void OnDivide();
	afx_msg void OnNum4();
	afx_msg void OnNum5();
	afx_msg void OnNum6();
	afx_msg void OnMultiply();
	afx_msg void OnNum1();
	afx_msg void OnNum3();
	afx_msg void OnMinus();
	afx_msg void OnNum0();
	afx_msg void OnDecimal();
	afx_msg void OnNegative();
	afx_msg void OnPlus();
	afx_msg void OnEqual();
	afx_msg void OnSin();
	afx_msg void OnSqrt();
	afx_msg void OnCos();
	afx_msg void OnTan();
	afx_msg void OnCot();
	afx_msg void OnLn();
	afx_msg void OnLog();
	afx_msg void OnRestart();
	afx_msg void OnChangeEditResult();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in gss_calculatorView.cpp
inline CGss_calculatorDoc* CGss_calculatorView::GetDocument()
   { return (CGss_calculatorDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GSS_CALCULATORVIEW_H__D54D516D_75BD_442A_8631_B5EAAD873ECB__INCLUDED_)

⌨️ 快捷键说明

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