📄 main.cpp
字号:
// Main.cpp : implementation file
//
#include "stdafx.h"
#include "people2.h"
#include "Main.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Main dialog
Main::Main(CWnd* pParent /*=NULL*/)
: CDialog(Main::IDD, pParent)
{
//{{AFX_DATA_INIT(Main)
m_Number = _T("");
//}}AFX_DATA_INIT
}
void Main::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Main)
DDX_Text(pDX, IDC_PEOPLE_EDIT1, m_Number);
DDX_Control(pDX, IDC_ADODC1, m_adodc);
DDX_Control(pDX, IDC_DATAGRID1, m_datagrid);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Main, CDialog)
//{{AFX_MSG_MAP(Main)
ON_COMMAND(ID_MENUITEM32775, OnMenuitem32775)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Main message handlers
void Main::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
BOOL Main::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void Main::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
void Main::OnMenuitem32775()
{
// TODO: Add your command handler code here
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -