settime.cpp

来自「自己写的关于车台控制面板的演示程序」· C++ 代码 · 共 55 行

CPP
55
字号
// SetTime.cpp : implementation file
//

#include "stdafx.h"
#include "ConsoleDisplay.h"
#include "SetTime.h"
#include "DialogSetting.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetTime dialog


CSetTime::CSetTime(CWnd* pParent /*=NULL*/)
	: CDialog(CSetTime::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetTime)
	m_sethours = _T("");
	m_setdate = _T("");
	//}}AFX_DATA_INIT
}


void CSetTime::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetTime)
	DDX_Text(pDX, IDC_EDIT1, m_sethours);
	DDX_Text(pDX, IDC_EDIT2, m_setdate);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetTime, CDialog)
	//{{AFX_MSG_MAP(CSetTime)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetTime message handlers

void CSetTime::OnButton1() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
	CDialogSetting  a;
	a.DoModal();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?