CTSManagerView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. 
  2. // CTSManagerView.h: CCTSManagerView 类的接口
  3. //
  4. #pragma once
  5. class CCTSManagerView : public CView
  6. {
  7. protected: // 仅从序列化创建
  8. CCTSManagerView() noexcept;
  9. DECLARE_DYNCREATE(CCTSManagerView)
  10. // 特性
  11. public:
  12. CCTSManagerDoc* GetDocument() const;
  13. // 操作
  14. public:
  15. // 重写
  16. public:
  17. virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
  18. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  19. protected:
  20. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  21. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  22. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  23. // 实现
  24. public:
  25. virtual ~CCTSManagerView();
  26. #ifdef _DEBUG
  27. virtual void AssertValid() const;
  28. virtual void Dump(CDumpContext& dc) const;
  29. #endif
  30. protected:
  31. // 生成的消息映射函数
  32. protected:
  33. afx_msg void OnFilePrintPreview();
  34. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  35. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  36. DECLARE_MESSAGE_MAP()
  37. };
  38. #ifndef _DEBUG // CTSManagerView.cpp 中的调试版本
  39. inline CCTSManagerDoc* CCTSManagerView::GetDocument() const
  40. { return reinterpret_cast<CCTSManagerDoc*>(m_pDocument); }
  41. #endif