www.pudn.com > xtable2.zip > XMLTableView.h


// XMLTableView.h : interface of the CXMLTableView class 
// 
#pragma once 
#include "XTable.h" 
 
class CXMLTableView : public CView 
{ 
protected: // create from serialization only 
	CXMLTableView(); 
	DECLARE_DYNCREATE(CXMLTableView) 
 
// Attributes 
public: 
	CXMLTableDoc* GetDocument() const; 
 
// Operations 
public: 
	XTable m_table; 
 
// Overrides 
	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); 
 
// Implementation 
public: 
	virtual ~CXMLTableView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	DECLARE_MESSAGE_MAP() 
public: 
	afx_msg void OnClose(); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
protected: 
	virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/); 
}; 
 
#ifndef _DEBUG  // debug version in XMLTableView.cpp 
inline CXMLTableDoc* CXMLTableView::GetDocument() const 
   { return reinterpret_cast(m_pDocument); } 
#endif