ODBCRWExcelDlg.h
上传用户:fdpbxz
上传日期:2022-07-13
资源大小:33k
文件大小:2k
- // ODBCRWExcelDlg.h : header file
- //
- #if !defined(AFX_ODBCRWEXCELDLG_H__0BADE691_BA45_4F11_BC79_1E102963AF68__INCLUDED_)
- #define AFX_ODBCRWEXCELDLG_H__0BADE691_BA45_4F11_BC79_1E102963AF68__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CODBCRWExcelDlg dialog
- class CODBCRWExcelDlg : public CDialog
- {
- // Construction
- public:
- CODBCRWExcelDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CODBCRWExcelDlg)
- enum { IDD = IDD_ODBCRWEXCEL_DIALOG };
- CComboBox m_comboSex;
- CListCtrl m_ListCtrlInfo;
- CString m_csName;
- CString m_csAge;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CODBCRWExcelDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CODBCRWExcelDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnButtonReadExcel();
- afx_msg void OnButtonWriteExcel();
- afx_msg void OnButtonQuit();
- afx_msg void OnButtonClearList();
- afx_msg void OnClickInfoList(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CString GetExcelDriver(); //获取ODBC中Excel驱动
- BOOL IsCreatedTable();
- CString GetDatabaseFile();
- private:
- CString m_csSex;
- CString m_csDatebaseFile;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ODBCRWEXCELDLG_H__0BADE691_BA45_4F11_BC79_1E102963AF68__INCLUDED_)