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

📄 tempdlg.h

📁 mfc做的计算器 界面简单 功能基本 初级作品
💻 H
字号:
// tempDlg.h : header file
//

#if !defined(AFX_TEMPDLG_H__4309BBC6_0F3A_4685_8718_30E717FD2EC1__INCLUDED_)
#define AFX_TEMPDLG_H__4309BBC6_0F3A_4685_8718_30E717FD2EC1__INCLUDED_

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

#include "MyButton.h"

/////////////////////////////////////////////////////////////////////////////
// CTempDlg dialog

class CTempDlg : public CDialog
{
// Construction
public:
	CTempDlg(CWnd* pParent = NULL);	// standard constructor
	double addsubt(); // compute with +-
	double multdiv(); // compute whth */
	double number();  // turn char to number
	void ShowError();
// Dialog Data
	//{{AFX_DATA(CTempDlg)
	enum { IDD = IDD_TEMP_DIALOG };
	CMyButton	m_sqrt;
	CMyButton	m_r;
	CMyButton	m_per;
	CMyButton	m_mul;
	CMyButton	m_l;
	CMyButton	m_equal;
	CMyButton	m_dot;
	CMyButton	m_div;
	CMyButton	m_dec;
	CMyButton	m_ce;
	CMyButton	m_back;
	CMyButton	m_any;
	CMyButton	m_add;
	CMyButton	m_IDOK;
	CMyButton	m_B_9;
	CMyButton	m_B_8;
	CMyButton	m_B_7;
	CMyButton	m_B_6;
	CMyButton	m_B_0;
	CMyButton	m_B_5;
	CMyButton	m_B_4;
	CMyButton	m_B_3;
	CMyButton	m_B_2;
	CMyButton	m_B_1;
	CString	m_display;
	double operater;
	int key;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTempDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void On0();
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On4();
	afx_msg void On5();
	afx_msg void On6();
	afx_msg void On7();
	afx_msg void On8();
	afx_msg void On9();
	afx_msg void Onadd();
	afx_msg void Ondec();
	afx_msg void Onmul();
	afx_msg void Ondiv();
	afx_msg void Once();
	afx_msg void Onequal();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void Onback();
	afx_msg void Onsqrt();
	afx_msg void Onanybyone();
	afx_msg void Ondot();
	virtual void OnOK();
	afx_msg void Onright();
	afx_msg void Onleft();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TEMPDLG_H__4309BBC6_0F3A_4685_8718_30E717FD2EC1__INCLUDED_)

⌨️ 快捷键说明

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