📄 caculatordlg.h
字号:
// caculatorDlg.h : header file
//
#if !defined(AFX_CACULATORDLG_H__6517A71B_EEA6_4BB1_86C7_15D286843E43__INCLUDED_)
#define AFX_CACULATORDLG_H__6517A71B_EEA6_4BB1_86C7_15D286843E43__INCLUDED_
#include "Math.h"
#include "XPButton1.h"
#include "Medit.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCaculatorDlg dialog
class CCaculatorDlg : public CDialog
{
// Construction
public:
int m_signxw;
CEdit *m_restr;
int m_fun;
double m_change;
int sign;
int m_firxw;
int m_secxw;
double m_seconddata;
double m_firstdata;
double m_firstdata1;
double m_seconddata1;
double m_temp;
double m_temp1;
double m_x;
BOOL change;
BOOL ishavedot;
CCaculatorDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCaculatorDlg)
enum { IDD = IDD_CACULATOR_DIALOG };
CMedit m_control;
CXPButton m_xy;
CXPButton m_x3;
CXPButton m_tan;
CXPButton m_squr;
CXPButton m_sin;
CXPButton m_se;
CXPButton m_res;
CXPButton m_reci;
CXPButton m_po;
CXPButton m_9;
CXPButton m_7;
CXPButton m_6;
CXPButton m_5;
CXPButton m_3;
CXPButton m_2;
CXPButton m_1;
CXPButton m_0;
CXPButton m_muti;
CXPButton m_min;
CXPButton m_log;
CXPButton m_fac;
CXPButton m_equal;
CXPButton m_doub;
CXPButton m_divid;
CXPButton m_cos;
CXPButton m_add;
CXPButton m_8;
CXPButton m_4;
CXPButton m_ctrlMoreButton;
CXPButton m_back;
CMedit m_showtime;
double m_result;
//}}AFX_DATA
void AddNum(int);
void AddFun(int);
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCaculatorDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCaculatorDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnAllzero();
afx_msg void OnNumber0();
afx_msg void OnNumber1();
afx_msg void OnNumber2();
afx_msg void OnNumber3();
afx_msg void OnNumber4();
afx_msg void OnNumber5();
afx_msg void OnNumber6();
afx_msg void OnNumber7();
afx_msg void OnNumber8();
afx_msg void OnNumber9();
afx_msg void OnBack();
afx_msg void OnSelect();
afx_msg void OnAdd();
afx_msg void OnMinus();
afx_msg void OnMuti();
afx_msg void OnDivide();
afx_msg void OnRecipal();
afx_msg void OnDoub();
afx_msg void OnPoint();
afx_msg void OnSqurt();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClose();
afx_msg void OnEqual();
afx_msg void OnAbout();
afx_msg void OnRadian();
afx_msg void OnAngle();
afx_msg void OnSin();
afx_msg void OnCos();
afx_msg void OnLog();
afx_msg void OnTan();
afx_msg void OnXy();
afx_msg void OnFactorial();
afx_msg void OnX3();
afx_msg void OnResid();
afx_msg void OnStandard();
virtual void OnOK();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void ToggleSize();
CRect m_rectHalf;
CRect m_rectFull;
BOOL m_bToggleSize;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CACULATORDLG_H__6517A71B_EEA6_4BB1_86C7_15D286843E43__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -