dialogtimeset.cpp

来自「这是一个用于工控的上位机系统」· C++ 代码 · 共 65 行

CPP
65
字号
// DialogTimeset.cpp : implementation file
//

#include "stdafx.h"
#include "TempHumSystem.h"
#include "DialogTimeset.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogTimeset dialog


CDialogTimeset::CDialogTimeset(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogTimeset::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogTimeset)
	m_time = 0;
	//}}AFX_DATA_INIT
}


void CDialogTimeset::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogTimeset)
	DDX_Text(pDX, IDC_EDIT_TIME, m_time);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogTimeset, CDialog)
	//{{AFX_MSG_MAP(CDialogTimeset)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogTimeset message handlers

void CDialogTimeset::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	extern int LogTime;
	extern int LogTimeCount;
	LogTimeCount = 0;
	LogTime = m_time;
	CDialog::OnOK();
}

BOOL CDialogTimeset::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_time = 1;
	UpdateData(FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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