ex101View.h
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // ex101View.h : interface of the CEx101View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "labelcontrol.h"
  6. //}}AFX_INCLUDES
  7. #if !defined(AFX_EX101VIEW_H__9BBBABAC_6D67_4137_A612_26DB879AB0BE__INCLUDED_)
  8. #define AFX_EX101VIEW_H__9BBBABAC_6D67_4137_A612_26DB879AB0BE__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. class CEx101View : public CFormView
  13. {
  14. protected: // create from serialization only
  15. CEx101View();
  16. DECLARE_DYNCREATE(CEx101View)
  17. public:
  18. //{{AFX_DATA(CEx101View)
  19. enum { IDD = IDD_EX101_FORM };
  20. CComboBox m_ctrlMonthList;
  21. int m_nYear;
  22. int m_nMonPro;
  23. CString m_strMonMem;
  24. CString m_strRiseRate;
  25. CLabelControl m_YearPro;
  26. //}}AFX_DATA
  27. // Attributes
  28. public:
  29. CEx101Doc* GetDocument();
  30. // Operations
  31. public:
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CEx101View)
  35. public:
  36. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  37. protected:
  38. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  39. virtual void OnInitialUpdate(); // called first time after construct
  40. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  41. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  42. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  43. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. public:
  47. virtual ~CEx101View();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. protected:
  53. // Generated message map functions
  54. protected:
  55. //{{AFX_MSG(CEx101View)
  56. afx_msg void OnChangeMonMem();
  57. afx_msg void OnChangeMonPro();
  58. afx_msg void OnChangeYear();
  59. afx_msg void OnDeltaposSpinYear(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnSelchangeMonth();
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. private:
  64. int m_nCurrentMonth;
  65. };
  66. #ifndef _DEBUG  // debug version in ex101View.cpp
  67. inline CEx101Doc* CEx101View::GetDocument()
  68.    { return (CEx101Doc*)m_pDocument; }
  69. #endif
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_EX101VIEW_H__9BBBABAC_6D67_4137_A612_26DB879AB0BE__INCLUDED_)