⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mycalculatordlg.h

📁 经典C++书籍钱能C++书籍例子代码实例
💻 H
字号:
// MyCalculatorDlg.h : header file
//

#if !defined(AFX_MYCALCULATORDLG_H__900A85E9_F36A_11D6_829B_EFDAD663BA47__INCLUDED_)
#define AFX_MYCALCULATORDLG_H__900A85E9_F36A_11D6_829B_EFDAD663BA47__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyCalculatorDlg dialog

class CMyCalculatorDlg : public CDialog
{
// Construction
public:
	CMyCalculatorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyCalculatorDlg)
	enum { IDD = IDD_MYCALCULATOR_DIALOG };
	CButton	m_8;
	CString	m_display;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyCalculatorDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	double m_first;
	double m_second;
	CString m_operator;
	double m_coff;
	void Calculate(void);
	void UpdateDisplay(double);
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyCalculatorDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton0();
	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 OnButtonSqrt();
	afx_msg void OnButtonSign();
	afx_msg void OnButtonMutiply();
	afx_msg void OnButtonMinus();
	afx_msg void OnButtonEqual();
	afx_msg void OnButtonDiv();
	afx_msg void OnButtonClear();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonReciprocal();
	afx_msg void OnButtonPoint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYCALCULATORDLG_H__900A85E9_F36A_11D6_829B_EFDAD663BA47__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -