CalView.h
Upload User: kelijie
Upload Date: 2007-01-01
Package Size: 123k
Code Size: 3k
Category:

Graph program

Development Platform:

Visual C++

  1. #if !defined(AFX_CALVIEW_H__634A3800_F0DC_11D2_8F48_00805FBDCBE4__INCLUDED_)
  2. #define AFX_CALVIEW_H__634A3800_F0DC_11D2_8F48_00805FBDCBE4__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // CalView.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CCalculatorView view
  10. #include "standard.h"
  11. #include "CalDoc.h"
  12. class _declspec(dllexport) CCalculatorView : public CStandardView
  13. {
  14. public:
  15. CCalculatorView();           // protected constructor used by dynamic creation
  16. DECLARE_DYNCREATE(CCalculatorView)
  17. // Attributes
  18. public:
  19.     int          m_iOperandType;
  20.     CString  m_strMsg;
  21. CFont*       m_Font;
  22.     CFont*       operFont;
  23.     
  24. CStatic*     m_txtVar1;
  25.     CStatic*     m_txtVar2;
  26. CStatic*     m_txtResult;
  27. CStatic*     m_txtOperand;
  28. CStatic*     m_txtDocMsg;
  29.     CEdit*       m_editVar1;
  30.     CEdit*       m_editVar2;
  31.     CEdit*       m_editResult;
  32. CEdit*       m_editOperand;
  33. CEdit*       m_editDocMsg;
  34. CButton*     m_btnCalculation;
  35. // Operations
  36. public:
  37. //{{AFX_DATA(CCalculatorView)
  38. int m_iVar1;
  39. int m_iVar2;
  40. //}}AFX_DATA
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CCalculatorView)
  44. public:
  45. virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  46. virtual void OnInitialUpdate();
  47. virtual void DoDataExchange(CDataExchange* pDX);
  48. protected:
  49. virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. public:
  53. virtual ~CCalculatorView();
  54. #ifdef _DEBUG
  55. virtual void AssertValid() const;
  56. virtual void Dump(CDumpContext& dc) const;
  57. #endif
  58.     void GetMsgFromDocument(CString msg);
  59. // Generated message map functions
  60. public:
  61. //{{AFX_MSG(CCalculatorView)
  62. afx_msg void OnCalculatorexit();
  63. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  64. afx_msg void OnCalculate();
  65. afx_msg void OnAdd();
  66. afx_msg void OnUpdateAdd(CCmdUI* pCmdUI);
  67. afx_msg void OnSub();
  68. afx_msg void OnUpdateSub(CCmdUI* pCmdUI);
  69. afx_msg void OnTime();
  70. afx_msg void OnUpdateTime(CCmdUI* pCmdUI);
  71. afx_msg void OnDvd();
  72. afx_msg void OnUpdateDvd(CCmdUI* pCmdUI);
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_CALVIEW_H__634A3800_F0DC_11D2_8F48_00805FBDCBE4__INCLUDED_)