www.pudn.com > StuDAO.rar > StuDAOView.h


// StuDAOView.h : interface of the CStuDAOView class 
// 
///////////////////////////////////////////////////////////////////////////// 
//{{AFX_INCLUDES() 
#include "msflexgrid.h" 
//}}AFX_INCLUDES 
 
#if !defined(AFX_STUDAOVIEW_H__472533ED_2C4E_11D6_9C7C_5254AB31B8A3__INCLUDED_) 
#define AFX_STUDAOVIEW_H__472533ED_2C4E_11D6_9C7C_5254AB31B8A3__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CStuDAOSet; 
 
class CStuDAOView : public CDaoRecordView 
{ 
protected: // create from serialization only 
	CStuDAOView(); 
	DECLARE_DYNCREATE(CStuDAOView) 
 
public: 
	//{{AFX_DATA(CStuDAOView) 
	enum { IDD = IDD_STUDAO_FORM }; 
	CStuDAOSet* m_pSet; 
	CMSFlexGrid	m_FlexGrid; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CStuDAODoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CStuDAOView) 
	public: 
	virtual CDaoRecordset* OnGetRecordset(); 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnDraw(CDC* pDC); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CStuDAOView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CStuDAOView) 
	afx_msg void OnRecordFirst(); 
	afx_msg void OnRecordLast(); 
	afx_msg void OnRecordNext(); 
	afx_msg void OnRecordPrev(); 
	DECLARE_EVENTSINK_MAP() 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in StuDAOView.cpp 
inline CStuDAODoc* CStuDAOView::GetDocument() 
   { return (CStuDAODoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_STUDAOVIEW_H__472533ED_2C4E_11D6_9C7C_5254AB31B8A3__INCLUDED_)