ado_exampleview.h
来自「Visual C++数据库编程源代码 《Visual C++程序员成长攻略》一」· C头文件 代码 · 共 77 行
H
77 行
// ADO_EXAMPLEView.h : interface of the CADO_EXAMPLEView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ADO_EXAMPLEVIEW_H__6C9D76D5_507D_4846_AEE7_DB02698D70D2__INCLUDED_)
#define AFX_ADO_EXAMPLEVIEW_H__6C9D76D5_507D_4846_AEE7_DB02698D70D2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TableName.h"
class CADO_EXAMPLEView : public CView
{
protected: // create from serialization only
CADO_EXAMPLEView();
DECLARE_DYNCREATE(CADO_EXAMPLEView)
// Attributes
public:
CADO_EXAMPLEDoc* GetDocument();
// Operations
public:
//"加入自定义代码"
_ConnectionPtr m_pConnection;
CTableName m_pDialog;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CADO_EXAMPLEView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CADO_EXAMPLEView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CADO_EXAMPLEView)
afx_msg void OnAddTable();
afx_msg void OnDeleteTable();
afx_msg void OnAddRow();
afx_msg void OnDeleteRow();
afx_msg void OnAddRecord();
afx_msg void OnStatisticalRecord();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ADO_EXAMPLEView.cpp
inline CADO_EXAMPLEDoc* CADO_EXAMPLEView::GetDocument()
{ return (CADO_EXAMPLEDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADO_EXAMPLEVIEW_H__6C9D76D5_507D_4846_AEE7_DB02698D70D2__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?