#pragma once #include #include "MCADoc.h" #include "ControlView.h" class CDetailView : public CView { protected: DECLARE_DYNCREATE(CDetailView) // 重写 public: CDetailView(); virtual ~CDetailView(); 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: double ZF = 1.0; 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); };