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

📄 calculatordlg.h

📁 办公助手的主窗体由计算器和便利贴两个子窗体和6个办公助手
💻 H
字号:
#if !defined(AFX_CALCULATORDLG_H__3F33ACAC_0CD3_4113_9042_F985AFBD5F43__INCLUDED_)
#define AFX_CALCULATORDLG_H__3F33ACAC_0CD3_4113_9042_F985AFBD5F43__INCLUDED_
#include "CustomButton.h"
#include "NumberEdit.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CalculatorDlg.h : header file
//

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

class CCalculatorDlg : public CDialog
{
// Construction
public:
	void Count();
	CCalculatorDlg(CWnd* pParent = NULL);   // standard constructor
	long double m_Num;	 //记录编辑框中的数据
	BOOL m_Time;	 //判断是否为第一次按下数字键
	char m_Operator; //保存运算符
	BOOL m_IsDown;	//按下按钮
	CString m_MemoryNum;//记忆字符串
// Dialog Data
	//{{AFX_DATA(CCalculatorDlg)
	enum { IDD = IDD_CALCULATOR_DIALOG };
	CCustomButton	m_Memory;
	CCustomButton	m_Sqrt;
	CCustomButton	m_Decimal;
	CCustomButton	m_Change;
	CNumberEdit	m_Edit;
	CCustomButton	m_Addtion;
	CCustomButton	m_Amount;
	CCustomButton	m_Clear;
	CCustomButton	m_Division;
	CCustomButton	m_Multiplication;
	CCustomButton	m_Subtration;
	CCustomButton	m_Button0;
	CCustomButton	m_Button9;
	CCustomButton	m_Button8;
	CCustomButton	m_Button7;
	CCustomButton	m_Button6;
	CCustomButton	m_Button5;
	CCustomButton	m_Button4;
	CCustomButton	m_Button3;
	CCustomButton	m_Button2;
	CCustomButton	m_Button1;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalculatorDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCalculatorDlg)
	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 OnButton0();
	afx_msg void OnAddtion();
	afx_msg void OnSubtration();
	afx_msg void OnMultiplication();
	afx_msg void OnDivision();
	afx_msg void OnAmount();
	afx_msg void OnClear();
	virtual BOOL OnInitDialog();
	afx_msg void OnDecimal();
	afx_msg void OnSqrt();
	afx_msg void OnMemory();
	afx_msg void OnChange();
	//}}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__3F33ACAC_0CD3_4113_9042_F985AFBD5F43__INCLUDED_)

⌨️ 快捷键说明

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