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

📄 myadodlg.h

📁 一个完整的VC对数据库操作的实例
💻 H
字号:
// MyAdoDlg.h : header file
//

#if !defined(AFX_MYADODLG_H__09FD3496_6BEF_4825_89C1_24A599681A2C__INCLUDED_)
#define AFX_MYADODLG_H__09FD3496_6BEF_4825_89C1_24A599681A2C__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMyAdoDlg dialog
#include "ado.h"

class CMyAdoDlg : public CDialog
{
// Construction
public:
	BOOL UpdateRecord(BOOL bLoad = TRUE);
	CMyAdoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyAdoDlg)
	enum { IDD = IDD_MYADO_DIALOG };
	CString	m_strTel;
	CString	m_strName;
	CString m_strInfo;
	int		m_nAge;
	CString	m_strSex;
	COleCurrency	m_cyMoney;
	COleDateTime	m_dtDate;
	CString	m_strOther;
	float	m_fLength;
	long	m_lPostion;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;
	CAdoConnection m_adoConnection;
	CAdoRecordSet  m_adoRecordSet;
	
	CString m_strPathName;
	CBitmap m_Bitmap;
	// Generated message map functions
	//{{AFX_MSG(CMyAdoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonBack();
	afx_msg void OnButtonUpdate();
	afx_msg void OnButtonForward();
	virtual void OnOK();
	afx_msg void OnButtonUpdatephoto();
	virtual void OnCancel();
	afx_msg void OnButtonCancelupdate();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonNew();
	afx_msg void OnButtonBookmark();
	afx_msg void OnButtonGobookmark();
	afx_msg void OnPass();
	afx_msg void OnSort();
	afx_msg void OnButtonImport();
	afx_msg void OnButtonExport();
	afx_msg void OnButtonUpdateinfo();
	afx_msg void OnButtonBack2();
	afx_msg void OnButtonForward2();
	afx_msg void OnButtonUpdatefieldinfo();
	afx_msg void OnButtonUpdateconnect();
	afx_msg void OnReset();
	afx_msg void OnFind();
	afx_msg void OnFindnext();
	afx_msg void OnGrid();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MYADODLG_H__09FD3496_6BEF_4825_89C1_24A599681A2C__INCLUDED_)

⌨️ 快捷键说明

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