www.pudn.com > vc++Notepad.rar > NotepadView.h


// NotepadView.h : interface of the CNotepadView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_NOTEPADVIEW_H__0328CF82_9ED3_4C85_A111_9F20B3038B1B__INCLUDED_) 
#define AFX_NOTEPADVIEW_H__0328CF82_9ED3_4C85_A111_9F20B3038B1B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CNotepadView : public CEditView 
{ 
protected: // create from serialization only 
	CNotepadView(); 
	DECLARE_DYNCREATE(CNotepadView) 
 
// Attributes 
public: 
	CNotepadDoc* GetDocument(); 
    CFont m_Font; 
	BOOL bChk; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CNotepadView) 
	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 
 
// Implementation 
public: 
	virtual ~CNotepadView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CNotepadView) 
	afx_msg void OnFormatFont(); 
	afx_msg void OnFormatReturn(); 
	afx_msg void OnUpdateFormatReturn(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in NotepadView.cpp 
inline CNotepadDoc* CNotepadView::GetDocument() 
   { return (CNotepadDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NOTEPADVIEW_H__0328CF82_9ED3_4C85_A111_9F20B3038B1B__INCLUDED_)