tableinsert.cpp

来自「数据库模拟程序 实现控制台命令词法分析」· C++ 代码 · 共 52 行

CPP
52
字号
// TableInsert.cpp : implementation file
//

#include "stdafx.h"
#include "database.h"
#include "TableInsert.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTableInsert dialog


CTableInsert::CTableInsert(CWnd* pParent /*=NULL*/)
	: CDialog(CTableInsert::IDD, pParent)
{
	//{{AFX_DATA_INIT(CTableInsert)
	m_index = 0;
	m_str = _T("");
	//}}AFX_DATA_INIT
}


void CTableInsert::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CTableInsert)
	DDX_Text(pDX, IDC_EDIT1, m_index);
	DDX_Text(pDX, IDC_EDIT2, m_str);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CTableInsert, CDialog)
	//{{AFX_MSG_MAP(CTableInsert)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTableInsert message handlers

void CTableInsert::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData();
	CDialog::OnOK();
}

⌨️ 快捷键说明

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