www.pudn.com > AccessADO.rar > AccessView.h


// AccessView.h : interface of the CAccessView class 
// 
///////////////////////////////////////////////////////////////////////////// 
//{{AFX_INCLUDES() 
#include "msflexgrid.h" 
//}}AFX_INCLUDES 
 
#if !defined(AFX_ACCESSVIEW_H__56535A7B_19F5_43C8_8A20_700B809C0685__INCLUDED_) 
#define AFX_ACCESSVIEW_H__56535A7B_19F5_43C8_8A20_700B809C0685__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CAccessView : public CFormView 
{ 
protected: // create from serialization only 
	CAccessView(); 
	DECLARE_DYNCREATE(CAccessView) 
 
public: 
	//{{AFX_DATA(CAccessView) 
	enum { IDD = IDD_ACCESS_FORM }; 
	CEdit	m_editError; 
	CEdit	m_editSQL; 
	CMSFlexGrid	m_wndGrid; 
	CString	m_strSQL; 
	CString	m_strError; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CAccessDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CAccessView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnInitialUpdate(); // called first time after construct 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void UpdateGrid(); 
	virtual ~CAccessView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CAccessView) 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnRun(); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnNcPaint(); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnFileConnect(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in AccessView.cpp 
inline CAccessDoc* CAccessView::GetDocument() 
   { return (CAccessDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ACCESSVIEW_H__56535A7B_19F5_43C8_8A20_700B809C0685__INCLUDED_)