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

📄 rwexceldlg.h

📁 一个直接用程序读取excel表格数据的例子
💻 H
字号:
//////////////////////////////////////////////////////////////////////////////
//类名:CRWExcelDlg
//功能:直接通过ODBC读、写Excel文件示例实现对话框
//日期:2002.9.1
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RWEXCELDLG_H__1DEC11B4_DE14_45EE_B27E_2860E529C1B1__INCLUDED_)
#define AFX_RWEXCELDLG_H__1DEC11B4_DE14_45EE_B27E_2860E529C1B1__INCLUDED_

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

#include "WBButton.h"				//加入位图按钮类
#include "HyperLink.h"				//加入超链接类
#include "PictureEx.h"				//加入GIF动态图像显示
/////////////////////////////////////////////////////////////////////////////
// CRWExcelDlg dialog

class CRWExcelDlg : public CDialog
{
// Construction
public:
	CRWExcelDlg(CWnd* pParent = NULL);	// standard constructor

	CString GetExcelDriver();			//获取ODBC中Excel驱动

// Dialog Data
	//{{AFX_DATA(CRWExcelDlg)
	enum { IDD = IDD_RWEXCEL_DIALOG };
	CWBButton	m_About;
	CListBox	m_ExcelList;
	CWBButton	m_OK;
	CWBButton	m_Write;
	CWBButton	m_Read;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRWExcelDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CRWExcelDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnReadexcel();
	afx_msg void OnWriteexcel();
	afx_msg void OnAbout();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_RWEXCELDLG_H__1DEC11B4_DE14_45EE_B27E_2860E529C1B1__INCLUDED_)

⌨️ 快捷键说明

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