📄 xycalcdlg.h
字号:
// XYCALCDlg.h : header file
////written by 熊英
#if !defined(AFX_XYCALCDLG_H__15E1ACC7_6C16_11D6_B9FC_444553540000__INCLUDED_)
#define AFX_XYCALCDLG_H__15E1ACC7_6C16_11D6_B9FC_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Inia1.h"
/////////////////////////////////////////////////////////////////////////////
// CXYCALCDlg dialog
enum Operator { OpNone=0,OpLeft,OpRight,OpOr,OpXor,OpAnd,OpLsh,OpAdd,OpSubtract,OpMultiply,OpMod,OpDivide, OpSqrt,OpPercent,OpMadd,OpSin,OpPow,OpNot};
enum CalcError { ErrNone, ErrDivideByZero };
#include "KXdlg.h"
#include "MFECToolTip.h" //TIP
#include "colorbtn.h"
// 标准型对话框
class CXYCALCDlg : public CDialog
{
// Construction
public:
void addtip();
void buttoncolor();
int m_nbz;
void ClickNumber(int lnum);
void perform();
void updatedisp();
void setoperand(double newvalue);
CXYCALCDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CXYCALCDlg)
enum { IDD = IDD_XYCALC_DIALOG };
CInia1 m_editinia;
CString m_string;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CXYCALCDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CMFECToolTip m_toolTip;
HACCEL m_hAccel;
double memoryvalue;
CalcError m_errorState;
Operator m_operator;
int bitnum;
int point;
bool m_operavail;
double m_accum;
double m_operand;
HICON m_hIcon;
CColorButton m_btn1;
CColorButton m_btn2;
CColorButton m_btn3;
CColorButton m_btn4;
CColorButton m_btn5;
CColorButton m_btn6;
CColorButton m_btn7;
CColorButton m_btn8;
CColorButton m_btn9;
CColorButton m_btn0;
CColorButton m_btn10;
CColorButton m_btn11;
CColorButton m_butn1;
CColorButton m_butn2;
CColorButton m_butn3;
CColorButton m_butn4;
CColorButton m_butn5;
CColorButton m_butn6;
CColorButton m_butn7;
CColorButton m_butn8;
CColorButton m_b1;
CColorButton m_b2;
CColorButton m_b3;
CColorButton m_b4;
CColorButton m_b5;
CColorButton m_b6;
CColorButton m_b7;
// Generated message map functions
//{{AFX_MSG(CXYCALCDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnDestroy();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
afx_msg void Ondevide();
afx_msg void Ontimes();
afx_msg void Onminus();
afx_msg void Onplus();
afx_msg void Onsqrt();
afx_msg void Onpercent();
afx_msg void Ondaoshu();
afx_msg void Onequal();
afx_msg void Onzhengfu();
afx_msg void Onpoint();
afx_msg void Onbackspaces();
afx_msg void Onclear();
afx_msg void OnMc();
afx_msg void OnMs();
afx_msg void OnMadd();
afx_msg void OnMr();
afx_msg void OnMenuitem32776();
afx_msg void OnMenuitem32774();
afx_msg void OnMENUcopy();
afx_msg void OnMENUpaste();
afx_msg void OnChangeEdit1();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnClose();
afx_msg void OnClickedNumber(UINT nID);
afx_msg void OnCancel1();
afx_msg void OnHelpContents();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XYCALCDLG_H__15E1ACC7_6C16_11D6_B9FC_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -