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/TotalView.h

40 lines
740 B
C++

#pragma once
#include <afxwin.h>
#include "MCADoc.h"
#include "ControlView.h"
class CTotalView :
public CView
{
protected:
DECLARE_DYNCREATE(CTotalView)
// 重写
public:
CTotalView();
virtual ~CTotalView();
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
CMCADoc* pDoc = nullptr;
CControlView* pView = nullptr;
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
virtual BOOL PreTranslateMessage(MSG* pMsg);
};