📄 计算器dlg.h
字号:
// 计算器Dlg.h : header file
//
#if !defined(AFX_DLG_H__600B249E_2746_4DAD_B361_EE8454D3BAF5__INCLUDED_)
#define AFX_DLG_H__600B249E_2746_4DAD_B361_EE8454D3BAF5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
//CEdit m_editResult;
CString m_strResult;
CString m_lishi;
CString m_shi;
//}}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;
bool OperatorPressed;
bool Restarted;
// 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 OnNum0();
afx_msg void OnNum2();
afx_msg void OnFuhao();
afx_msg void OnNum1();
afx_msg void OnNum3();
afx_msg void OnNum4();
afx_msg void OnNum5();
afx_msg void OnNum6();
afx_msg void OnNum7();
afx_msg void OnNum8();
afx_msg void OnNum9();
afx_msg void OnNum10();
afx_msg void OnNum11();
afx_msg void OnNum12();
afx_msg void OnNum13();
afx_msg void OnNum14();
afx_msg void OnNum15();
afx_msg void OnDot();
afx_msg void OnAc();
afx_msg void OnBack();
afx_msg void OnAdd();
afx_msg void OnEqual();
afx_msg void OnDec();
afx_msg void OnMut();
afx_msg void OnDiv();
afx_msg void OnMo();
afx_msg void OnMutmut();
afx_msg void OnSin();
afx_msg void OnCos();
afx_msg void OnTan();
afx_msg void OnCot();
afx_msg void OnLn();
afx_msg void OnLog();
afx_msg void OnDecimalist();
afx_msg void OnHex();
afx_msg void OnOctal();
afx_msg void OnBinary();
afx_msg void OnDegree();
afx_msg void OnRadian();
afx_msg void OnAsin();
afx_msg void OnAcos();
afx_msg void OnAtan();
afx_msg void OnAcot();
afx_msg void OnExp();
afx_msg void OnDaoshu();
afx_msg void OnJiecehg();
afx_msg void OnPi();
afx_msg void OnSqr();
afx_msg void OnXianshi();
afx_msg void OnBuxianshi();
afx_msg void OnQingchu();
//}}AFX_MSG
void Error(int n);
double qitazhuanshi(char str[], int m1);
void shizhuanqita(double p, int m2);
DECLARE_MESSAGE_MAP()
CButton m_OprEqual;
//
CButton m_OprAc;
CButton m_OprBack;
//
//CButton m_OprFactorial;
CButton m_OprPi;
CButton m_OprLog;
CButton m_OprLn;
CButton m_OprSqr;
//sin cos tan asin acos atan
CButton m_OprAtan;
CButton m_OprAcos;
CButton m_OprAsin;
CButton m_OprAcot;
CButton m_OprTan;
CButton m_OprCot;
CButton m_OprCos;
CButton m_OprSin;
CButton m_OprDaoshu;
CButton m_OprJiecehg;
CButton m_OprExp;
CButton m_OprAdd;
CButton m_OprDec;
CButton m_OprMut;
CButton m_OprDiv;
CButton m_OprMo;
CButton m_OprMutmut;
//
CButton m_OprDot;
CButton m_OprFuhao;
//
CButton m_NumF;
CButton m_NumE;
CButton m_NumD;
CButton m_NumC;
CButton m_NumB;
CButton m_NumA;
CButton m_Num9;
CButton m_Num8;
CButton m_Num7;
CButton m_Num6;
CButton m_Num5;
CButton m_Num4;
CButton m_Num3;
CButton m_Num2;
CButton m_Num1;
CButton m_Num0;
//
//
CButton m_RadioBinary;
CButton m_RadioOctal;
CButton m_RadioHex;
CButton m_RadioDecimalist;
//
CButton m_RadioRadian;
CButton m_RadioDegree;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__600B249E_2746_4DAD_B361_EE8454D3BAF5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -