📄 querydlg.cpp
字号:
// QueryDlg.cpp : implementation file
//
#include "stdafx.h"
#include "inhabitants.h"
#include "QueryDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CQueryDlg dialog
CQueryDlg::CQueryDlg(CWnd* pParent /*=NULL*/)
: CDialog(CQueryDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CQueryDlg)
m_strMajor = _T("");
m_nBuildingNum = 0;
m_nRoomNum = 0;
m_strRemarks = _T("");
m_strHomeTel = _T("");
m_strStudentname = _T("");
m_strId = _T("");
m_strSex = _T("");
m_strNationNal = _T("");
m_nBedNum = 0;
m_strStudentName = _T("");
//}}AFX_DATA_INIT
}
void CQueryDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CQueryDlg)
DDX_Text(pDX, IDC_EDIT_MAJOR, m_strMajor);
DDX_Text(pDX, IDC_EDIT_BUILDINGNUM, m_nBuildingNum);
DDX_Text(pDX, IDC_EDIT_ROOMNUM, m_nRoomNum);
DDX_Text(pDX, IDC_EDIT_REMARKS, m_strRemarks);
DDX_Text(pDX, IDC_EDIT_HOMETEL, m_strHomeTel);
DDX_Text(pDX, IDC_EDIT_STUDENTNAME, m_strStudentname);
DDX_Text(pDX, IDC_EDIT_ID, m_strId);
DDX_Text(pDX, IDC_EDIT_SEX, m_strSex);
DDX_Text(pDX, IDC_EDIT_NATIONAL, m_strNationNal);
DDX_Text(pDX, IDC_EDIT_BED, m_nBedNum);
DDX_Text(pDX, IDC_EDIT_ROOMTYPE, m_strStudentName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CQueryDlg, CDialog)
//{{AFX_MSG_MAP(CQueryDlg)
ON_LBN_SELCHANGE(IDC_LIST3, OnSelchangeList3)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CQueryDlg message handlers
void CQueryDlg::OnOK()
{
CDialog::OnOK();
}
void CQueryDlg::OnClickTree2(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
*pResult = 0;
}
void CQueryDlg::OnSelchangeList3()
{
// TODO: Add your control notification handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -