www.pudn.com > Tongxun.rar > TongxunDlg.h


////////////////////////////////////////////////////////////////////////////// 
//类名:CTongxunDlg 
//功能:直接通过ADO读、写Access文件示例实现 
///////////////////////////////////////////////////////////////////////////// 
#if !defined(AFX_TONGXUNDLG_H__3E6C3E72_CDD4_4013_BC0C_9C69A5BA1F8F__INCLUDED_) 
#define AFX_TONGXUNDLG_H__3E6C3E72_CDD4_4013_BC0C_9C69A5BA1F8F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "WinXPButtonST.h"          // XP风格按钮 
///////////////////////////////////////////////////////////////////////////// 
// CAdoRWAccessDlg dialog 
 
class CTongxunDlg : public CDialog 
{ 
// Construction 
public: 
	CTongxunDlg(CWnd* pParent = NULL);	// standard constructor 
 
	// 定义ADO连接、命令、记录集变量指针 
	_ConnectionPtr	m_pConnection; 
	_CommandPtr		m_pCommand; 
	_RecordsetPtr	m_pRecordset; 
 
// Dialog Data 
	//{{AFX_DATA(CTongxunDlg) 
	enum { IDD = IDD_TONGXUN_DIALOG }; 
	CWinXPButtonST	m_OK;             // 替换为XP风格按钮 
	CWinXPButtonST	m_Write; 
	CWinXPButtonST	m_Read; 
	CWinXPButtonST	m_Modify; 
	CWinXPButtonST	m_Delete; 
	CWinXPButtonST  m_Query; 
//	CWinXPButtonST	m_About; 
	CListBox	m_AccessList; 
	CString	m_Name; 
	CString	m_Phone; 
	CString m_Address; 
	CString m_Postalcode; 
	CString m_QueryName; 
	//}}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 void OnQuery(); 
	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_)