www.pudn.com > test3.zip > test3View.h
// test3View.h : Ctest3View 类的接口
//
#pragma once
class Ctest3View : public CView
{
protected: // 仅从序列化创建
Ctest3View();
DECLARE_DYNCREATE(Ctest3View)
// 属性
public:
Ctest3Doc* 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 ~Ctest3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // test3View.cpp 的调试版本
inline Ctest3Doc* Ctest3View::GetDocument() const
{ return reinterpret_cast(m_pDocument); }
#endif