xxview.h

来自「《突破Visual C++.NET编程实例五十讲+源文件,初学者学习的好东东!」· C头文件 代码 · 共 64 行

H
64
字号
// XxView.h :  CXxView类的接口
//

#if !defined(AFX_XXVIEW_H__3B541491_61A8_11D2_86B6_0040055C08D9__INCLUDED_)
#define AFX_XXVIEW_H__3B541491_61A8_11D2_86B6_0040055C08D9__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CXxView : public CView
{
protected: // 仅从序列化创建
	CXxView();
	DECLARE_DYNCREATE(CXxView)

// 属性
public:
	CXxDoc* GetDocument();

// 操作
public:


// 重写
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CXxView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	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);
	//}}AFX_VIRTUAL
// 实现
public:
	virtual ~CXxView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
// 生成的消息映射函数
protected:
	//{{AFX_MSG(CXxView)
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in XxView.cpp
inline CXxDoc* CXxView::GetDocument()
   { return (CXxDoc*)m_pDocument; }
#endif



//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_XXVIEW_H__3B541491_61A8_11D2_86B6_0040055C08D9__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?