39 lines
694 B
C++
39 lines
694 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);
|
|
};
|