📄 adddialog.cpp
字号:
// AddDialog.cpp : implementation file
//
#include "stdafx.h"
#include "lhwy5323.h"
#include "AddDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAddDialog dialog
CAddDialog::CAddDialog(CWnd* pParent /*=NULL*/)
: CDialog(CAddDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CAddDialog)
m_English = 0;
m_strName = _T("");
m_Xuehao = 0;
m_Maths = _T("");
//}}AFX_DATA_INIT
}
void CAddDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAddDialog)
DDX_Control(pDX, IDOK, m_OK);
DDX_Control(pDX, IDCANCEL, m_Cancel);
DDX_Text(pDX, IDC_ENGLISH, m_English);
DDX_Text(pDX, IDC_NAME, m_strName);
DDX_Text(pDX, IDC_XUEHAO, m_Xuehao);
DDX_Text(pDX, IDC_MATHS, m_Maths);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAddDialog, CDialog)
//{{AFX_MSG_MAP(CAddDialog)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAddDialog message handlers
void CAddDialog::OnOK()
{
// TODO: Add extra validation here
UpdateData();
CDialog::OnOK();
}
BOOL CAddDialog::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
}
HBRUSH CAddDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return hbr;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -