|
// MFCApplication3View.h: CMFCApplication3View 类的接口
|
//
|
|
#pragma once
|
|
|
class CMFCApplication3View : public CScrollView
|
{
|
protected: // 仅从序列化创建
|
CMFCApplication3View() noexcept;
|
DECLARE_DYNCREATE(CMFCApplication3View)
|
|
// 特性
|
public:
|
CMFCApplication3Doc* GetDocument() const;
|
|
// 操作
|
public:
|
|
// 重写
|
public:
|
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
|
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
protected:
|
virtual void OnInitialUpdate(); // 构造后第一次调用
|
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
|
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
|
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
// 实现
|
public:
|
virtual ~CMFCApplication3View();
|
#ifdef _DEBUG
|
virtual void AssertValid() const;
|
virtual void Dump(CDumpContext& dc) const;
|
#endif
|
|
protected:
|
|
// 生成的消息映射函数
|
protected:
|
DECLARE_MESSAGE_MAP()
|
};
|
|
#ifndef _DEBUG // MFCApplication3View.cpp 中的调试版本
|
inline CMFCApplication3Doc* CMFCApplication3View::GetDocument() const
|
{ return reinterpret_cast<CMFCApplication3Doc*>(m_pDocument); }
|
#endif
|
|