www.pudn.com > holder.zip > HolderView.h


// HolderView.h : interface of the CHolderView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_HOLDERVIEW_H__9FD0876F_57E0_11D2_BF25_00A0C91E8585__INCLUDED_) 
#define AFX_HOLDERVIEW_H__9FD0876F_57E0_11D2_BF25_00A0C91E8585__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
//SAMPLE: again, make forward references easier. 
class CHolderDoc; 
 
class CHolderView : public CHtmlView 
{ 
protected: // create from serialization only 
	CHolderView(); 
	DECLARE_DYNCREATE(CHolderView) 
 
// Attributes 
public: 
	CHolderDoc* GetDocument(); 
 
	//SAMPLE: flag to let us know about allowing or disallowing context menu 
	BOOL m_bAllowContextMenu; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CHolderView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CHolderView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CHolderView) 
	afx_msg void OnUpdateViewAllowiecontextmenu(CCmdUI* pCmdUI); 
	afx_msg void OnViewAllowiecontextmenu(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
	// Generated OLE dispatch map functions 
	//{{AFX_DISPATCH(COttoDoc) 
	afx_msg void Bing(long nNumber); 
	afx_msg void OnClick(IDispatch* pdispBody, VARIANT* varColor); 
	//}}AFX_DISPATCH 
	DECLARE_DISPATCH_MAP() 
	DECLARE_INTERFACE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in HolderView.cpp 
inline CHolderDoc* CHolderView::GetDocument() 
   { return (CHolderDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_HOLDERVIEW_H__9FD0876F_57E0_11D2_BF25_00A0C91E8585__INCLUDED_)