www.pudn.com > NiHe > NiHeScrollView.h


#if !defined(AFX_NIHESCROLLVIEW_H__117309A8_1F4E_436E_8343_6445DF614A2F__INCLUDED_) 
#define AFX_NIHESCROLLVIEW_H__117309A8_1F4E_436E_8343_6445DF614A2F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// NiHeScrollView.h : header file 
// 
#include "NiHeDoc.h" 
///////////////////////////////////////////////////////////////////////////// 
// NiHeScrollView view 
 
class NiHeScrollView : public CScrollView 
{ 
protected: 
	NiHeScrollView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(NiHeScrollView) 
 
// Attributes 
public: 
	CNiHeDoc *GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(NiHeScrollView) 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	virtual void OnInitialUpdate();     // first time after construct 
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~NiHeScrollView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
	//{{AFX_MSG(NiHeScrollView) 
	afx_msg void OnNiheProcess(); 
	afx_msg void OnSetCishu(); 
	afx_msg void OnNiheresult(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//Getdocument()的非调试版本 
#ifndef _DEBUG                 //调试版本在.cpp中 
inline CNiHeDoc* NiHeScrollView::GetDocument() 
{return (CNiHeDoc*)m_pDocument;} 
#endif 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NIHESCROLLVIEW_H__117309A8_1F4E_436E_8343_6445DF614A2F__INCLUDED_)