FinanceDBGrid.h
上传用户:xiaoke98
上传日期:2014-06-29
资源大小:5718k
文件大小:2k
- #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 FilesCommon FilesSystemADOmsado15.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_)