|
// MTerm1View.h: CMTerm1View 类的接口
|
//
|
|
#pragma once
|
|
|
class CMTerm1View : public CView
|
{
|
protected: // 仅从序列化创建
|
CMTerm1View() noexcept;
|
DECLARE_DYNCREATE(CMTerm1View)
|
|
// 特性
|
public:
|
CMTerm1Doc* GetDocument() const;
|
|
// 操作
|
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:
|
virtual ~CMTerm1View();
|
#ifdef _DEBUG
|
virtual void AssertValid() const;
|
virtual void Dump(CDumpContext& dc) const;
|
#endif
|
|
protected:
|
|
// 生成的消息映射函数
|
protected:
|
afx_msg void OnFilePrintPreview();
|
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
DECLARE_MESSAGE_MAP()
|
};
|
|
#ifndef _DEBUG // MTerm1View.cpp 中的调试版本
|
inline CMTerm1Doc* CMTerm1View::GetDocument() const
|
{ return reinterpret_cast<CMTerm1Doc*>(m_pDocument); }
|
#endif
|
|