📄 calculatorguidlg.h
字号:
// CalculatorGUIDlg.h : header file
//
#if !defined(AFX_CALCULATORGUIDLG_H__AA985BFD_C17D_4E9E_A615_1FC06CEE80B6__INCLUDED_)
#define AFX_CALCULATORGUIDLG_H__AA985BFD_C17D_4E9E_A615_1FC06CEE80B6__INCLUDED_
#include "DlgSOE.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCalculatorGUIDlg dialog
class CCalculatorGUIDlg : public CDialog
{
// Construction
public:
void controlButtons(BOOL state);
BOOL m_bin;
CString m_ans;
CString processResult(CString s);
int SetBitmap(UINT nIDResource);
CBitmap m_bitmap;
bool degree;
bool calculate(CString ex);
double kqnho;
bool equal;
double ketqua;
void clickBtn(CString s);
int AddString2List(LPCTSTR s);
int width;
void updateWidth(LPCTSTR s);
CCalculatorGUIDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCalculatorGUIDlg)
enum { IDD = IDD_CALCULATORGUI_DIALOG };
CButton m_btnMSub;
CButton m_btnMR;
CButton m_btnMAdd;
CButton m_btnNgoac2;
CButton m_btnNgoac1;
CButton m_btnAns;
CButton m_btnTohop;
CButton m_btnTan;
CButton m_btnSqrt;
CButton m_btnSin;
CButton m_btnPow;
CButton m_btnPi;
CButton m_btnMod;
CButton m_btnLog;
CButton m_btnLn;
CButton m_btnGiaithua;
CButton m_btnFloor;
CButton m_btnExp;
CButton m_btnDot;
CButton m_btnCos;
CButton m_btnChinhhop;
CButton m_btnCeil;
CButton m_btnArctan;
CButton m_btnArcsin;
CButton m_btnArccos;
CButton m_btnAbs;
CButton m_btn9;
CButton m_btn8;
CButton m_btn7;
CButton m_btn6;
CButton m_btn5;
CButton m_btn4;
CButton m_btn3;
CButton m_btn2;
CEdit m_cInput;
CListBox m_history;
CString m_In;
CString m_Out;
CString m_nho;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalculatorGUIDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCalculatorGUIDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonClear();
afx_msg void OnButtonEqual();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnButton0();
afx_msg void OnButtonDot();
afx_msg void OnButtonNeg();
afx_msg void OnButtonAdd();
afx_msg void OnButtonSub();
afx_msg void OnButtonMul();
afx_msg void OnButtonDiv();
afx_msg void OnButtonSin();
afx_msg void OnButtonCos();
afx_msg void OnButtonTan();
afx_msg void OnButtonArcsin();
afx_msg void OnButtonArccos();
afx_msg void OnButtonArctan();
afx_msg void OnButtonSqrt();
afx_msg void OnButtonMod();
afx_msg void OnButtonExp();
afx_msg void OnButtonLn();
afx_msg void OnButtonLog();
afx_msg void OnButtonGiaithua();
afx_msg void OnButtonPow();
afx_msg void OnButtonTohop();
afx_msg void OnButtonChinhhop();
afx_msg void OnButtonAbs();
afx_msg void OnButtonNgoac1();
afx_msg void OnButtonNgoac2();
afx_msg void OnButtonCeil();
afx_msg void OnButtonFloor();
afx_msg void OnButtonPi();
afx_msg void OnButtonM();
afx_msg void OnButtonMc();
afx_msg void OnButtonMr();
afx_msg void OnDblclkListHistory();
afx_msg void OnButtonC();
afx_msg void OnButtonDelete();
afx_msg void OnRadioDeg();
afx_msg void OnRadioRadient();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnSystemofequations();
afx_msg void OnHelpAbout();
afx_msg void OnEquation();
afx_msg void OnButtonAns();
afx_msg void OnRadioBin();
afx_msg void OnRadioDec();
afx_msg void OnChangeEditIn();
afx_msg void OnDrawGraph();
afx_msg void OnButtonMsub();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CALCULATORGUIDLG_H__AA985BFD_C17D_4E9E_A615_1FC06CEE80B6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -