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

📄 calculator123dlg.h

📁 1、二进制、八进制、十进制及十六进制数的加、减、乘、除、乘方、取模等简单计算 2、科学计算函数
💻 H
字号:
// calculator123Dlg.h : header file
//

#if !defined(AFX_CALCULATOR123DLG_H__B7B0CC09_2F33_41F6_82F8_BA4EDA929EF2__INCLUDED_)
#define AFX_CALCULATOR123DLG_H__B7B0CC09_2F33_41F6_82F8_BA4EDA929EF2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "constant.h"
#include "calculation.h"
#include "meihua.h"

/////////////////////////////////////////////////////////////////////////////
// CCalculator123Dlg dialog

class CCalculator123Dlg : public CDialog
{
// Construction
public:
	CCalculation calcu;
	
	
	
	Cconstant* open;
	CCalculator123Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCalculator123Dlg)
	enum { IDD = IDD_CALCULATOR123_DIALOG };
	CButton	m_moct;
	CButton	m_mdec;
	CButton	m_mbin;
	CButton	m_mhex;
	Cmeihua	m_cos;
	Cmeihua	m_cancle;
	Cmeihua	m_zuo;
	Cmeihua	m_you;
	Cmeihua	m_th;
	Cmeihua	m_tan;
	Cmeihua	m_sub;
	Cmeihua	m_sqr;
	Cmeihua	m_sin;
	Cmeihua	m_sh;
	Cmeihua	m_point;
	Cmeihua	m_pi;
	Cmeihua	m_ok;
	Cmeihua	m_mul;
	Cmeihua	m_mod;
	Cmeihua	m_log;
	Cmeihua	m_ln;
	Cmeihua	m_exp;
	Cmeihua	m_ex;
	Cmeihua	m_eee;
	Cmeihua	m_e;
	Cmeihua	m_div;
	Cmeihua	m_cot;
	Cmeihua	m_con;
	Cmeihua	m_clear;
	Cmeihua	m_ch;
	Cmeihua	m_oct;
	Cmeihua	m_hex;
	Cmeihua	m_bin;
	Cmeihua	m_back;
	Cmeihua	m_arctan;
	Cmeihua	m_arcsin;
	Cmeihua	m_arccos;
	Cmeihua	m_add;
	Cmeihua	m_abs;
	Cmeihua	m_9;
	Cmeihua	m_8;
	Cmeihua	m_7;
	Cmeihua	m_6;
	Cmeihua	m_5;
	Cmeihua	m_4;
	Cmeihua	m_3;
	Cmeihua	m_2;
	Cmeihua	m_15;
	Cmeihua	m_14;
	Cmeihua	m_13;
	Cmeihua	m_12;
	Cmeihua	m_11;
	Cmeihua	m_10;
	Cmeihua	m_1;
	Cmeihua	m_0;
	CListBox	m_ListBox;
	CEdit	m_pointstore;
	CButton	m_radio_radian;
	CButton	m_radio_degree;
	CString	m_store;
    CString m_strRes;
	CString	m_str;
	//}}AFX_DATA

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

// Implementation
protected:
	CRect m_rect;
	bool broad;
	int m_nend;
	int m_nstart;
	int m_nlength;
     CString m_strResTmp;
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCalculator123Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void On7();
	afx_msg void On8();
	afx_msg void On9();
	afx_msg void On4();
	afx_msg void On5();
	afx_msg void On6();
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On0();
	afx_msg void Onpoint();
	afx_msg void Onadd();
	afx_msg void Onsub();
	afx_msg void Onmul();
	afx_msg void Onzuo();
	afx_msg void Ondiv();
	afx_msg void Onex();
	afx_msg void Onmod();
	afx_msg void Onyou();
	afx_msg void On10();
	afx_msg void On11();
	afx_msg void On12();
	afx_msg void On13();
	afx_msg void On14();
	afx_msg void On15();
	afx_msg void Onpi();
	afx_msg void One();
	afx_msg void Onback();
	afx_msg void Onclear();
	afx_msg void Oncon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void Onsin();
	afx_msg void Oncos();
	afx_msg void Ontan();
	afx_msg void Oncot();
	afx_msg void OnAsin();
	afx_msg void OnAcos();
	afx_msg void OnAtan();
	afx_msg void Onlog();
	afx_msg void Onsh();
	afx_msg void Onch();
	afx_msg void Onth();
	afx_msg void Onln();
	afx_msg void Oneee();
	afx_msg void Onsqr();
	afx_msg void Onabs();
	afx_msg void Onexp();
	virtual void OnCancel();
	afx_msg void OnOk();
	afx_msg void OnBtnBin();
	afx_msg void OnBtnOct();
	afx_msg void OnBtnHex();
	afx_msg void OnSelchangeHistory();
	afx_msg void Onmhex();
	afx_msg void Onmdec();
	afx_msg void Onmoct();
	afx_msg void Onmbin();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void AddToHistr(CString store);
	void yingshe(CString strSign,BOOL bIsSingle);
	
};

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

#endif // !defined(AFX_CALCULATOR123DLG_H__B7B0CC09_2F33_41F6_82F8_BA4EDA929EF2__INCLUDED_)

⌨️ 快捷键说明

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