www.pudn.com > 单文档多视图.rar > View1.h
// View1.h : interface of the C1View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_FIRSTVIEW_H__AB5584EC_BD44_11D2_A565_00105AD6E305__INCLUDED_)
#define AFX_FIRSTVIEW_H__AB5584EC_BD44_11D2_A565_00105AD6E305__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class C1View : public CEditView
{
protected: // create from serialization only
C1View();
DECLARE_DYNCREATE(C1View)
// operations
void ClearView();
void WriteText(LPCSTR lpszText);
// Attributes
public:
CSdiMultiDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(C1View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~C1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(C1View)
afx_msg void OnChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in FirstView.cpp
inline CSdiMultiDoc* C1View::GetDocument()
{ return (CSdiMultiDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FIRSTVIEW_H__AB5584EC_BD44_11D2_A565_00105AD6E305__INCLUDED_)