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

📄 calculatordlg.h

📁 这是一个用文法实现的计算器
💻 H
字号:
// CalculatorDlg.h : header file
//

#if !defined(AFX_CALCULATORDLG_H__5880ED77_5B40_43A9_A53C_A97240683C9A__INCLUDED_)
#define AFX_CALCULATORDLG_H__5880ED77_5B40_43A9_A53C_A97240683C9A__INCLUDED_

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

#include "XPButton.h"
#include "Calculate.h"	// Added by ClassView

/////////////////////////////////////////////////////////////////////////////
// CCalculatorDlg dialog

class CCalculatorDlg : public CDialog
{
// Construction
public:
	CCalculate m_cal;
	CCalculatorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCalculatorDlg)
	enum { IDD = IDD_CALCULATOR_DIALOG };
	CXPButton	m_right;
	CXPButton	m_left;
	CXPButton	m_clear;
	CXPButton	m_backspace;
	CXPButton	m_v4;
	CXPButton	m_v9;
	CXPButton	m_v8;
	CXPButton	m_v7;
	CXPButton	m_v6;
	CXPButton	m_v5;
	CXPButton	m_v3;
	CXPButton	m_v2;
	CXPButton	m_v1;
	CXPButton	m_v0;
	CXPButton	m_value;
	CXPButton	m_sub;
	CXPButton	m_mul;
	CXPButton	m_flo;
	CXPButton	m_div;
	CXPButton	m_add;
	CString	m_result;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalculatorDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCalculatorDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBadd();
	afx_msg void OnBdiv();
	afx_msg void OnBflo();
	afx_msg void OnBmul();
	afx_msg void OnBsub();
	afx_msg void OnBval();
	afx_msg void OnButton0();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnButton6();
	afx_msg void OnButton7();
	afx_msg void OnButton8();
	afx_msg void OnButton9();
	afx_msg void OnBclear();
	afx_msg void OnBbackspace();
	afx_msg void OnButton10();
	afx_msg void OnButton11();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CALCULATORDLG_H__5880ED77_5B40_43A9_A53C_A97240683C9A__INCLUDED_)

⌨️ 快捷键说明

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