RWExcelDlg.h
上传用户:xiuanze55
上传日期:2013-06-16
资源大小:85k
文件大小:2k
- //////////////////////////////////////////////////////////////////////////////
- //类名:CRWExcelDlg
- //功能:直接通过ODBC读、写Excel文件示例实现对话框
- //作者:徐景周(jingzhou_xu@163.net)
- //组织:未来工作室(Future Studio)
- //日期: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_)