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

📄 calc1dlg.h

📁 一个简单的计数器,用VC++做的,不知道做的好不好,呵呵!
💻 H
字号:
// calc1Dlg.h : header file
//

#if !defined(AFX_CALC1DLG_H__8BE669C6_7A84_4CE9_A936_F9EA0865D160__INCLUDED_)
#define AFX_CALC1DLG_H__8BE669C6_7A84_4CE9_A936_F9EA0865D160__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCalc1Dlg dialog

class CCalc1Dlg : public CDialog
{
// Construction
public:

	CCalc1Dlg(CWnd* pParent = NULL);	// standard constructor
	//double count;
// Dialog Data

	bool m_rex;
	void calc();
	int m_op;
	double m_result;
	void addnum(int j);
	//{{AFX_DATA(CCalc1Dlg)
	enum { IDD = IDD_CALC1_DIALOG };
	double	m_input;
	//}}AFX_DATA
    
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalc1Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
	
	int m_numx;	
	
protected:
	HICON m_hIcon;
	int sum;
	
	// Generated message map functions
	//{{AFX_MSG(CCalc1Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSetfocusInput();
	afx_msg void OnAdd();
	afx_msg void OnCalc();
	afx_msg void OnClear();
	afx_msg void OnDiv();
	afx_msg void OnMul();
	afx_msg void OnReci();
	afx_msg void OnSqrt();
	afx_msg void OnSub();
	afx_msg void OnOk();
	afx_msg void On7();
	afx_msg void On1();
	afx_msg void On8();
	afx_msg void On9();
	afx_msg void On4();
	afx_msg void On5();
	afx_msg void On6();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On0();
	afx_msg void Onzf();
	afx_msg void Onpoint();
	afx_msg void Onbai();
	afx_msg void Onx3();
	afx_msg void Onx2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CALC1DLG_H__8BE669C6_7A84_4CE9_A936_F9EA0865D160__INCLUDED_)

⌨️ 快捷键说明

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