my_compterdlg.h
来自「用基于对话框的形式创建类似Windows自带的计算器」· C头文件 代码 · 共 72 行
H
72 行
// My_COMPTERDlg.h : header file
//
#if !defined(AFX_MY_COMPTERDLG_H__37137246_7FE1_42DF_99A6_C2B7E337DB92__INCLUDED_)
#define AFX_MY_COMPTERDLG_H__37137246_7FE1_42DF_99A6_C2B7E337DB92__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMy_COMPTERDlg dialog
class CMy_COMPTERDlg : public CDialog
{
// Construction
public:
CMy_COMPTERDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMy_COMPTERDlg)
enum { IDD = IDD_MY_COMPTER_DIALOG };
CString m_Show;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy_COMPTERDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
int t;
int m_B;
int m_Num;
//int m_Num1;
int m_NumResult;
BOOL bChange;
// Generated message map functions
//{{AFX_MSG(CMy_COMPTERDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
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 OnButtonPlus();
afx_msg void OnButtonMinus();
afx_msg void OnButtonMultiply();
afx_msg void OnButtonDivide();
afx_msg void OnButtonEq();
afx_msg void OnButtonDelete();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MY_COMPTERDLG_H__37137246_7FE1_42DF_99A6_C2B7E337DB92__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?