📄 calculatordlg.h
字号:
// CalculatorDlg.h : header file
//
#if !defined(AFX_XPSTYLEDLG_H__AB44DA49_EFFF_45FE_99CC_A16D7F0ECA6D__INCLUDED_)
#define AFX_XPSTYLEDLG_H__AB44DA49_EFFF_45FE_99CC_A16D7F0ECA6D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Calculation.h"
#include "COP.h"
#include "CNUM.h"
#include "CFUNC.h"
/////////////////////////////////////////////////////////////////////////////
// CCalculatorDlg dialog
class CCalculatorDlg : public CDialog
{
// Construction
public:
CCalculatorDlg(CWnd* pParent = NULL); // standard constructor
CCalculation calcu;
CCNUM *pNUMDlg;
CCOP *pOPDlg;
CCFUNC *pFUNCDlg;
// Dialog Data
//{{AFX_DATA(CCalculatorDlg)
enum { IDD = IDD_CALCULATOR_DIALOG };
CButton m_btn_convert;
CButton m_radio_radian;
CButton m_radio_degree;
CEdit m_strExpc;
CString m_strExp;
CString m_strRes;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalculatorDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CBitmap m_bitmap;
CRect m_rect;
CMenu m_menu;
CMenu m_menu2;
CStringArray m_menuItem;
CString m_strResTmp;
bool bIsNumBoardOpen;
bool bIsOpBoardOpen;
bool bIsFuncBoardOpen;
bool bIsOk;
int m_nlen;
int m_nStart;
int m_nEnd;
// Generated message map functions
//{{AFX_MSG(CCalculatorDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnButtonNum();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonOp();
afx_msg void OnButtonFunc();
afx_msg void OnBtnConst();
afx_msg void OnBtnHistrexp();
afx_msg void OnMPi();
afx_msg void OnMC();
afx_msg void OnMNa();
afx_msg void OnMG();
afx_msg void OnMR();
afx_msg void OnMK();
afx_msg void OnMVm();
afx_msg void OnMKe();
afx_msg void OnME0();
afx_msg void OnME();
afx_msg void OnBtnConvert();
afx_msg void OnMHex();
afx_msg void OnMOct();
afx_msg void OnMBin();
afx_msg void OnMDec();
//}}AFX_MSG
afx_msg void OnMenuSelect(UINT nID);
DECLARE_MESSAGE_MAP()
private:
void AddToHistr(CString strExp);
void Paster(CString strSign,BOOL bIsSingle);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XPSTYLEDLG_H__AB44DA49_EFFF_45FE_99CC_A16D7F0ECA6D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -