ddlg.cpp

来自「物流管理信息系统数据库,来自明日科技公司出品关于数据库建设」· C++ 代码 · 共 55 行

CPP
55
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?