📄 delimfodlg.cpp
字号:
// DelImfoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Worker.h"
#include "DelImfoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDelInfoDlg dialog
CDelInfoDlg::CDelInfoDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDelInfoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDelInfoDlg)
m_Name = _T("");
m_Money = 0.0;
m_ZhiCheng = _T("");
m_XueLi = _T("");
m_Marrige = -1;
m_Num = _T("");
m_nYear = 0;
m_nMonth = -1;
//}}AFX_DATA_INIT
}
void CDelInfoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDelInfoDlg)
DDX_Control(pDX, IDC_CHECK2, m_Woman);
DDX_Control(pDX, IDC_CHECK1, m_Man);
DDX_Control(pDX, IDCANCEL, m_Cancel);
DDX_Control(pDX, IDOK, m_Ok);
DDX_Text(pDX, IDC_EDIT1, m_Name);
DDX_Text(pDX, IDC_EDIT3, m_Money);
DDX_CBString(pDX, IDC_COMBO1, m_ZhiCheng);
DDX_CBString(pDX, IDC_COMBO3, m_XueLi);
DDX_CBIndex(pDX, IDC_COMBO4, m_Marrige);
DDX_Text(pDX, IDC_EDIT2, m_Num);
DDV_MaxChars(pDX, m_Num, 15);
DDX_Text(pDX, IDC_EDIT4, m_nYear);
DDX_CBIndex(pDX, IDC_COMBO2, m_nMonth);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDelInfoDlg, CDialog)
//{{AFX_MSG_MAP(CDelInfoDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDelInfoDlg message handlers
BOOL CDelInfoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
if(m_IsMan)
{
m_Man.SetCheck(TRUE);
m_Woman.SetCheck(FALSE);
}
else
{
m_Man.SetCheck(FALSE);
m_Woman.SetCheck(TRUE);
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDelInfoDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -