📄 timelimitdlg.cpp
字号:
// TimeLimitDlg.cpp : implementation file
//
#include "stdafx.h"
#include "mcds.h"
#include "TimeLimitDlg.h"
#include "GlobalVar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTimeLimitDlg dialog
CTimeLimitDlg::CTimeLimitDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTimeLimitDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTimeLimitDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CTimeLimitDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTimeLimitDlg)
DDX_Control(pDX, IDC_EDIT1, m_Edit1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTimeLimitDlg, CDialog)
//{{AFX_MSG_MAP(CTimeLimitDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTimeLimitDlg message handlers
BOOL CTimeLimitDlg::OnInitDialog()
{
CDialog::OnInitDialog();
cs.Lock();
nNumInfo[2]="时间";
m_Edit1.SetWindowText(nNumInfo[7]);
cs.Unlock();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTimeLimitDlg::OnOK()
{
// TODO: Add extra validation here
cs.Lock();
m_Edit1.GetWindowText(nNumInfo[7]);
cs.Unlock();
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -