SATHelperView.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // 这段 MFC 示例源代码演示如何使用 MFC Microsoft Office Fluent 用户界面
  2. // (“Fluent UI”)。该示例仅供参考,
  3. // 用以补充《Microsoft 基础类参考》和
  4. // MFC C++ 库软件随附的相关电子文档。
  5. // 复制、使用或分发 Fluent UI 的许可条款是单独提供的。
  6. // 若要了解有关 Fluent UI 许可计划的详细信息,请访问
  7. // https://go.microsoft.com/fwlink/?LinkId=238214.
  8. //
  9. // 版权所有(C) Microsoft Corporation
  10. // 保留所有权利。
  11. // SATHelperView.h: CSATHelperView 类的接口
  12. //
  13. #pragma once
  14. #include "SATHelperDoc.h"
  15. class CSATHelperView : public CView
  16. {
  17. protected: // 仅从序列化创建
  18. CSATHelperView() noexcept;
  19. DECLARE_DYNCREATE(CSATHelperView)
  20. // 特性
  21. public:
  22. CSATHelperDoc* GetDocument() const;
  23. // 操作
  24. public:
  25. // 重写
  26. public:
  27. virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
  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. public:
  35. virtual ~CSATHelperView();
  36. #ifdef _DEBUG
  37. virtual void AssertValid() const;
  38. virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. protected:
  41. // 生成的消息映射函数
  42. protected:
  43. afx_msg void OnFilePrintPreview();
  44. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  45. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. #ifndef _DEBUG // SATHelperView.cpp 中的调试版本
  49. inline CSATHelperDoc* CSATHelperView::GetDocument() const
  50. { return reinterpret_cast<CSATHelperDoc*>(m_pDocument); }
  51. #endif