dgctview.h

来自「难得的activeX控件基础及应用程序」· C头文件 代码 · 共 82 行

H
82
字号
// DGCTView.h : interface of the CDGCTView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DGCTVIEW_H__4E1893EC_AF27_4806_960F_E30B01AF272F__INCLUDED_)
#define AFX_DGCTVIEW_H__4E1893EC_AF27_4806_960F_E30B01AF272F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DataGrid.h"


class CDGCTView : public CView
{
protected: // create from serialization only
	CDGCTView();
	DECLARE_DYNCREATE(CDGCTView)

// Attributes
public:
	CDGCTDoc* GetDocument();

	CDataGrid	m_DataGrid;

	_ConnectionPtr	m_pCN;	// ADO中数据源的连接指针(连接数据库note)
	_RecordsetPtr	m_pRS;	// ADO中数据库中表指针(连接info)

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDGCTView)
	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 ~CDGCTView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDGCTView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTableInsertColumn();
	afx_msg void OnTableAppendRow();
	afx_msg void OnDestroy();
	afx_msg void OnHeadClickDatagrid(short ColIndex);
	afx_msg void OnTableAdjustWidth();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()
};

#ifndef _DEBUG  // debug version in DGCTView.cpp
inline CDGCTDoc* CDGCTView::GetDocument()
   { return (CDGCTDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DGCTVIEW_H__4E1893EC_AF27_4806_960F_E30B01AF272F__INCLUDED_)

⌨️ 快捷键说明

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