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

📄 caldlg.h

📁 MFC下的计算器
💻 H
字号:
// calDlg.h : header file
//

#if !defined(AFX_CALDLG_H__2A542E41_BBBF_46CD_8625_97721B086689__INCLUDED_)
#define AFX_CALDLG_H__2A542E41_BBBF_46CD_8625_97721B086689__INCLUDED_

#include "AdvEdit.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCalDlg dialog

class CCalDlg : public CDialog
{
// Construction
public:
	void Result();
	CAdvEdit m_DspEdit;
	CCalDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCalDlg)
	enum { IDD = IDD_DIALOG };
	CButton	m_Button9;
	CButton	m_Button8;
	CButton	m_Button7;
	CButton	m_Button6;
	CButton	m_Button5;
	CButton	m_Button4;
	CButton	m_Button3;
	CButton	m_ButtonLog;
	CButton	m_ButtonLn;
	CButton	m_ButtonExp;
	CButton	m_ButtonPow;
	CButton	m_ButtonCub;
	CButton	m_ButtonSqu;
	CButton	m_ButtonTan;
	CButton	m_ButtonCos;
	CButton	m_Button2;
	CButton	m_ButtonSin;
	CButton	m_ButtonReverse;
	CButton	m_ButtonSqrt;
	CButton	m_ButtonClear;
	CButton	m_ButtonDiv;
	CButton	m_ButtonMul;
	CButton	m_ButtonSub;
	CButton	m_ButtonAdd;
	CButton	m_ButtonEqu;
	CButton	m_ButtonPoint;
	CButton	m_Button1;
	CButton	m_Button0;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCalDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton0();
	afx_msg void OnButton1();
	afx_msg void OnButtonEqu();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonPoint();
	afx_msg void OnButtonSub();
	afx_msg void OnButtonMul();
	afx_msg void OnButtonDiv();
	afx_msg void OnButtonClear();
	afx_msg void OnButtonSqrt();
	afx_msg void OnButtonReverse();
	afx_msg void OnButtonSin();
	afx_msg void OnButton2();
	afx_msg void OnButtonCos();
	afx_msg void OnButtonTan();
	afx_msg void OnButtonSqu();
	afx_msg void OnButtonCub();
	afx_msg void OnButtonPow();
	afx_msg void OnButtonExp();
	afx_msg void OnButtonLn();
	afx_msg void OnButtonLog();
	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
	DECLARE_MESSAGE_MAP()
private:
	CString m_StrEnd;
	int m_Mark;
	int m_IsCheckPoint;  //标识小数点
	int m_bit;           //记录运算符号
	double m_end;        //记录结果操作数
	double m_begin;      //记录初始操作数
	char m_buffer[100];  //记录结果操作数,字符串
	CString m_StrBegin;  //记录初始操作数,字符串
};

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

#endif // !defined(AFX_CALDLG_H__2A542E41_BBBF_46CD_8625_97721B086689__INCLUDED_)

⌨️ 快捷键说明

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