newadoview.h

来自「随着计算机信息技术的飞速发展」· C头文件 代码 · 共 77 行

H
77
字号
// NewADOView.h : interface of the CNewADOView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_NEWADOVIEW_H__D252C424_E88A_11D8_BF7A_B9D82E56125C__INCLUDED_)
#define AFX_NEWADOVIEW_H__D252C424_E88A_11D8_BF7A_B9D82E56125C__INCLUDED_

#include "SelDialog.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CNewADOView : public CListView
{
protected: // create from serialization only
	CNewADOView();
	DECLARE_DYNCREATE(CNewADOView)

// Attributes
public:
	CNewADODoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNewADOView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CNewADOView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CSelDialog m_SelDlg;

// Generated message map functions
protected:
	void SelectTable();
	//CSelDialog m_SelDlg;
	void ShowTable(const CString &sTablename);
	//void Retrieve(CString &sTablename);
	void Retrieve(const CString &sFirst, ...);
	//{{AFX_MSG(CNewADOView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnShowTable();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in NewADOView.cpp
inline CNewADODoc* CNewADOView::GetDocument()
   { return (CNewADODoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_NEWADOVIEW_H__D252C424_E88A_11D8_BF7A_B9D82E56125C__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?