⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 financedbgrid.h

📁 C++的课程设计
💻 H
字号:
#if !defined(AFX_FINANCEDBGRID_H__6B27BC86_34F7_4BBD_BEEE_B8314683D278__INCLUDED_)
#define AFX_FINANCEDBGRID_H__6B27BC86_34F7_4BBD_BEEE_B8314683D278__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FinanceDBGrid.h : header file
//

// 导入 ado 库 -----------------------------------------------------------
#pragma warning(disable:4146)
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" named_guids rename("EOF","adoEOF"), rename("BOF","adoBOF")
#pragma warning(default:4146)
using namespace ADODB;  



/////////////////////////////////////////////////////////////////////////////
// CFinanceDBGrid window

class CFinanceDBGrid : public CListCtrl
{
// Construction
public:
	CFinanceDBGrid();
	void	setRecordSet(_RecordsetPtr pRecordSet);
	void	Reflesh(void); //显示内容

	void	addColumn(char* strColumnName, int iColumnWidth);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFinanceDBGrid)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFinanceDBGrid();

	// Generated message map functions
protected:
	//{{AFX_MSG(CFinanceDBGrid)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	_RecordsetPtr	m_Recordset;
	int				m_iColumnIndex;

	void	FormateVariant(_variant_t value, CString& strValue);
};

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

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

#endif // !defined(AFX_FINANCEDBGRID_H__6B27BC86_34F7_4BBD_BEEE_B8314683D278__INCLUDED_)

⌨️ 快捷键说明

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