📄 people.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 + -