CalculatorDlg.h
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Visual C++

  1. // CalculatorDlg.h : header file
  2. //
  3. #if !defined(AFX_CALCULATORDLG_H__B7B109FD_8763_4739_A321_D226352701AF__INCLUDED_)
  4. #define AFX_CALCULATORDLG_H__B7B109FD_8763_4739_A321_D226352701AF__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCalculatorDlg dialog
  10. class CCalculatorDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. CCalculatorDlg(CWnd* pParent = NULL); // standard constructor
  15. double m_number1,m_number2;
  16. int m_NumberState,m_OperationState;
  17. void cal();
  18. // Dialog Data
  19. //{{AFX_DATA(CCalculatorDlg)
  20. enum { IDD = IDD_CALCULATOR_DIALOG };
  21. double m_number;
  22. //}}AFX_DATA
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CCalculatorDlg)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. protected:
  30. HICON m_hIcon;
  31. // Generated message map functions
  32. //{{AFX_MSG(CCalculatorDlg)
  33. virtual BOOL OnInitDialog();
  34. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  35. afx_msg void OnPaint();
  36. afx_msg HCURSOR OnQueryDragIcon();
  37. afx_msg void OnNumberKey(UINT nID);
  38. afx_msg VOID OnOperationKey(UINT nID);
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. //{{AFX_INSERT_LOCATION}}
  43. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  44. #endif // !defined(AFX_CALCULATORDLG_H__B7B109FD_8763_4739_A321_D226352701AF__INCLUDED_)