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

📄 dtest3dlg.h

📁 VC6.0++ & MySQL demo program developing
💻 H
字号:
// DTest3Dlg.h : header file
//
/*////////////////////////////////////////////////////////////////////////
注意:
1,从C:\mysql\include中把libmySQL.dll复制到工程目录下
2,	在StdAfx.h中添加
	#include <winsock2.h>
	#include <mysql.h>
	#pragma comment(lib,"libmySQL.lib")
3,在VC++IDE中选择菜单"Tools->Options..."打开Options对话框;
  选择Directories标签添在Show Directories for:中选择include files
  在Directories列表中添加C:\MYSQL\INCLUDE
////////////////////////////////////////////////////////////////////////*/

#if !defined(AFX_DTEST3DLG_H__C3E3278F_412A_4C74_9434_7B53D75DF45A__INCLUDED_)
#define AFX_DTEST3DLG_H__C3E3278F_412A_4C74_9434_7B53D75DF45A__INCLUDED_

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



/////////////////////////////////////////////////////////////////////////////
// CDTest3Dlg dialog

class CDTest3Dlg : public CDialog
{
// Construction
public:
	int m_nIndex;
	CString m_strStuID;
	void RefreshList();
	CDTest3Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CDTest3Dlg)
	enum { IDD = IDD_DTEST3_DIALOG };
	CDateTimeCtrl	m_DataTime;
	CComboBox	m_Combo;
	CListCtrl	m_list;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;
	MYSQL mysql; //数据库连接句柄
	// Generated message map functions
	//{{AFX_MSG(CDTest3Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAdd();
	afx_msg void OnUpdate();
	afx_msg void OnDelete();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DTEST3DLG_H__C3E3278F_412A_4C74_9434_7B53D75DF45A__INCLUDED_)

⌨️ 快捷键说明

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