sample10_3view.h
来自「《精通MFC》源码」· C头文件 代码 · 共 54 行
H
54 行
// SAMPLE10_3View.h : CSAMPLE10_3View 类的接口
//
#pragma once
class CSAMPLE10_3View : public CScrollView
{
protected: // 仅从序列化创建
CSAMPLE10_3View();
DECLARE_DYNCREATE(CSAMPLE10_3View)
// 属性
public:
CSAMPLE10_3Doc* 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 ~CSAMPLE10_3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
public:
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
// afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
virtual void OnInitialUpdate();
};
#ifndef _DEBUG // SAMPLE10_3View.cpp 的调试版本
inline CSAMPLE10_3Doc* CSAMPLE10_3View::GetDocument() const
{ return reinterpret_cast<CSAMPLE10_3Doc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?