📄 ddlg.cpp
字号:
// DDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MyProject.h"
#include "DDlg.h"
#include "ExternDllHeader.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDDlg dialog
CDDlg::CDDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_Time.Empty();
}
void CDDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDDlg)
DDX_Control(pDX, IDC_DTTIME, m_DtTime);
DDX_Control(pDX, IDC_STATITLE, m_Static);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDDlg, CDialog)
//{{AFX_MSG_MAP(CDDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDDlg message handlers
void CDDlg::OnOK()
{
CString sDate;
CTime tDate;
this->m_DtTime.GetTime(tDate);
sDate=CTimeToCString(tDate);
m_Time=sDate;
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -