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

📄 计算器dlg.h

📁 一个包含十进制和十六进制的计算器
💻 H
字号:
// 计算器Dlg.h : header file
//

#if !defined(AFX_DLG_H__7C4FF616_1B44_40AF_8797_42CC9F8B11A0__INCLUDED_)
#define AFX_DLG_H__7C4FF616_1B44_40AF_8797_42CC9F8B11A0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include<math.h>
#include<stdlib.h>

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	CMyDlg(CWnd* pParent = NULL);// standard constructor
	long factorial(long);
	

	
		

	

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	CButton	m_divide;
	CButton	m_tan;
	CButton	m_sin;
	CButton	m_log;
	CButton	m_exp;
	CButton	m_cos;
	CButton	m_point;
	CEdit	m_edit;
	CButton	m_F;
	CButton	m_E;
	CButton	m_D;
	CButton	m_C;
	CButton	m_B;
	CButton	m_A;
	CButton	m_9;
	CButton	m_8;
	CButton	m_7;
	CButton	m_6;
	CButton	m_5;
	CButton	m_4;
	CButton	m_3;
	CButton	m_2;
	CButton	m_1;
	CButton	m_0;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On4();
	afx_msg void On5();
	afx_msg void On6();
	afx_msg void On7();
	afx_msg void On8();
	afx_msg void On9();
	afx_msg void OnA();
	afx_msg void OnB();
	afx_msg void OnC();
	afx_msg void OnD();
	afx_msg void OnE();
	afx_msg void OnF();
	afx_msg void Onpoint();
	afx_msg void Onsign();
	afx_msg void Onplus();
	afx_msg void Onminus();
	afx_msg void Onmultiply();
	afx_msg void Ondivide();
	afx_msg void Onlog();
	afx_msg void Onxy();
	afx_msg void Onbackspace();
	afx_msg void OnCe();
	afx_msg void Onequal();
	afx_msg void Onsin();
	afx_msg void Oncos();
	afx_msg void Ontan();
	afx_msg void Onexp();
	afx_msg void Onfactorial();
	afx_msg void On0();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	char controlchar;
	double num2;
	double num1;
	double currentnum;
	CString m_string;
	int base;
};

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

#endif // !defined(AFX_DLG_H__7C4FF616_1B44_40AF_8797_42CC9F8B11A0__INCLUDED_)

⌨️ 快捷键说明

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