?? adorwaccessdlg.h
字號:
//////////////////////////////////////////////////////////////////////////////
//類名:CAdoRWAccessDlg
//功能:直接通過ADO讀、寫Access文件示例實現
//作者:徐景周(jingzhou_xu@163.net)
//組織:未來工作室(Future Studio)
//日期:2002.12.10
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ADORWACCESSDLG_H__3E6C3E72_CDD4_4013_BC0C_9C69A5BA1F8F__INCLUDED_)
#define AFX_ADORWACCESSDLG_H__3E6C3E72_CDD4_4013_BC0C_9C69A5BA1F8F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "WinXPButtonST.h" // XP風格按鈕
/////////////////////////////////////////////////////////////////////////////
// CAdoRWAccessDlg dialog
class CAdoRWAccessDlg : public CDialog
{
// Construction
public:
CAdoRWAccessDlg(CWnd* pParent = NULL); // standard constructor
// 定義ADO連接、命令、記錄集變量指針
_ConnectionPtr m_pConnection;
_CommandPtr m_pCommand;
_RecordsetPtr m_pRecordset;
// Dialog Data
//{{AFX_DATA(CAdoRWAccessDlg)
enum { IDD = IDD_ADORWACCESS_DIALOG };
CWinXPButtonST m_OK; // 替換為XP風格按鈕
CWinXPButtonST m_Write;
CWinXPButtonST m_Read;
CWinXPButtonST m_Modify;
CWinXPButtonST m_Delete;
CWinXPButtonST m_About;
CListBox m_AccessList;
CString m_Name;
CString m_Age;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAdoRWAccessDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAdoRWAccessDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnWriteAccess();
afx_msg void OnReadAccess();
afx_msg void OnAbout();
afx_msg void OnSelchangeListaccess();
afx_msg void OnDelete();
afx_msg void OnModify();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADORWACCESSDLG_H__3E6C3E72_CDD4_4013_BC0C_9C69A5BA1F8F__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -