📄 dialog1.h
字号:
#if !defined(AFX_DIALOG1_H__DCAFE233_E5E5_4E03_94D7_239C404FCFF0__INCLUDED_)
#define AFX_DIALOG1_H__DCAFE233_E5E5_4E03_94D7_239C404FCFF0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dialog1.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDialog1 dialog
class CDialog1 : public CDialog
{
// Construction
public:
CDialog1(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDialog1)
enum { IDD = IDD_DIALOG1 };
CButton m_percent;
CEdit m_result;
CButton m_sub;
CButton m_mul;
CButton m_equal;
CButton m_div;
CButton m_daoshu;
CButton m_ce;
CButton m_c;
CButton m_backspace;
CButton m_add;
CButton m_not;
CButton m_point;
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;
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialog1)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void DisplayResult(double display);
CString text;
int length;
char sign;
double num2;
double num1;
int flag,fpoint;
BYTE Key;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDialog1)
virtual BOOL OnInitDialog();
afx_msg void On0();
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 OnAdd();
afx_msg void OnBackspace();
afx_msg void OnC();
afx_msg void OnCe();
afx_msg void OnDiv();
afx_msg void OnEqual();
afx_msg void OnMul();
afx_msg void OnNot();
afx_msg void OnPoint();
afx_msg void OnSqrt();
afx_msg void OnSub();
afx_msg void OnPercent();
afx_msg void OnReci();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIALOG1_H__DCAFE233_E5E5_4E03_94D7_239C404FCFF0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -