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

SNMP编程

开发平台:

Visual C++

  1. // exam3View.h : interface of the CExam3View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_EXAM3VIEW_H__560715CA_CA7F_4CC9_867A_1B40A607B310__INCLUDED_)
  5. #define AFX_EXAM3VIEW_H__560715CA_CA7F_4CC9_867A_1B40A607B310__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "pointinfo.h"
  10. #include "afxtempl.h"
  11. class CExam3View : public CView
  12. {
  13. protected: // create from serialization only
  14. CExam3View();
  15. DECLARE_DYNCREATE(CExam3View)
  16. // Attributes
  17. public:
  18. CExam3Doc* GetDocument();
  19. // Operations
  20. public:
  21. CPointInfo *m_pPointInfo;
  22. CArray<CPoint,CPoint> m_arArray;
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CExam3View)
  26. public:
  27. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  28. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29. protected:
  30. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  31. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  32. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  33. //自己加的
  34. virtual void OnInitialUpdate();
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. public:
  38. virtual ~CExam3View();
  39. #ifdef _DEBUG
  40. virtual void AssertValid() const;
  41. virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43. protected:
  44. // Generated message map functions
  45. protected:
  46. //{{AFX_MSG(CExam3View)
  47. afx_msg void OnNomodeDialog();
  48. afx_msg void OnUpdateNomodeDialog(CCmdUI* pCmdUI);
  49. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  50. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  51. afx_msg void OnDeletePoint(WPARAM wParam,LPARAM lParam);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. #ifndef _DEBUG  // debug version in exam3View.cpp
  56. inline CExam3Doc* CExam3View::GetDocument()
  57.    { return (CExam3Doc*)m_pDocument; }
  58. #endif
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_EXAM3VIEW_H__560715CA_CA7F_4CC9_867A_1B40A607B310__INCLUDED_)