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

📄 people.cpp

📁 一个毕业设计。用vc编写的一个简易测谎仪后台软件。用控件实现access数据库的链接
💻 CPP
字号:
// People.cpp : implementation file
//

#include "stdafx.h"
#include "cehuangyi.h"
#include "People.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPeople dialog


CPeople::CPeople(CWnd* pParent /*=NULL*/)
	: CDialog(CPeople::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPeople)
	m_people = _T("");
	//}}AFX_DATA_INIT
}


void CPeople::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPeople)
	DDX_Text(pDX, IDC_PEOPLE, m_people);
	DDX_Control(pDX, IDC_DATAGRID1, m_peopledata);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPeople, CDialog)
	//{{AFX_MSG_MAP(CPeople)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPeople message handlers

BEGIN_EVENTSINK_MAP(CPeople, CDialog)
    //{{AFX_EVENTSINK_MAP(CPeople)
	ON_EVENT(CPeople, IDC_DATAGRID1, -600 /* Click */, OnClickDatagrid1, VTS_NONE)
	//}}AFX_EVENTSINK_MAP
END_EVENTSINK_MAP()

void CPeople::OnClickDatagrid1() 
{
	// TODO: Add your control notification handler code here
	m_peopledata.GetRow();
	m_peopledata.SetCol(1);
	m_people=m_peopledata.GetText();
	UpdateData(false);
}

⌨️ 快捷键说明

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