This repository has been archived on 2022-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Multichannel-Analyzer/MCA/MCAView.h

50 lines
939 B
C
Raw Normal View History

2022-03-19 20:43:29 +08:00

2022-03-19 21:04:48 +08:00
// MCAView.h: CMCAView 类的接口
2022-03-19 20:43:29 +08:00
//
#pragma once
2022-03-19 21:04:48 +08:00
class CMCAView : public CView
2022-03-19 20:43:29 +08:00
{
protected: // 仅从序列化创建
2022-03-19 21:04:48 +08:00
CMCAView() noexcept;
DECLARE_DYNCREATE(CMCAView)
2022-03-19 20:43:29 +08:00
// 特性
public:
2022-03-19 21:04:48 +08:00
CMCADoc* GetDocument() const;
2022-03-19 20:43:29 +08:00
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// 实现
public:
2022-03-19 21:04:48 +08:00
virtual ~CMCAView();
2022-03-19 20:43:29 +08:00
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // MCAView.cpp 中的调试版本
2022-03-19 21:04:48 +08:00
inline CMCADoc* CMCAView::GetDocument() const
{ return reinterpret_cast<CMCADoc*>(m_pDocument); }
2022-03-19 20:43:29 +08:00
#endif